From: Grzegorz Andrejczuk Date: Fri, 20 Jan 2017 13:22:35 +0000 (+0100) Subject: x86/cpufeature: Add RING3MWAIT to CPU features X-Git-Tag: Ubuntu-4.10.0-19.21~312 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3b313ba83fd01c79e92aa1f59084acfe1a3ae0cd;p=mirror_ubuntu-artful-kernel.git x86/cpufeature: Add RING3MWAIT to CPU features BugLink: http://bugs.launchpad.net/bugs/1637550 Add software-defined CPUID bit for the non-architectural ring 3 MONITOR/MWAIT feature. Signed-off-by: Grzegorz Andrejczuk Cc: Piotr.Luc@intel.com Cc: dave.hansen@linux.intel.com Link: http://lkml.kernel.org/r/1484918557-15481-4-git-send-email-grzegorz.andrejczuk@intel.com Signed-off-by: Thomas Gleixner (cherry picked from commit 1d12d0ef0194ccc4dcebed3d96bb2301b26fc3ee) Signed-off-by: Tim Gardner Signed-off-by: Robert Hooker --- diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index eafee3161d1c..167e1402e92c 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -100,7 +100,7 @@ #define X86_FEATURE_XTOPOLOGY ( 3*32+22) /* cpu topology enum extensions */ #define X86_FEATURE_TSC_RELIABLE ( 3*32+23) /* TSC is known to be reliable */ #define X86_FEATURE_NONSTOP_TSC ( 3*32+24) /* TSC does not stop in C states */ -/* free, was #define X86_FEATURE_CLFLUSH_MONITOR ( 3*32+25) * "" clflush reqd with monitor */ +#define X86_FEATURE_RING3MWAIT ( 3*32+25) /* ring 3 MONITOR/MWAIT */ #define X86_FEATURE_EXTD_APICID ( 3*32+26) /* has extended APICID (8 bits) */ #define X86_FEATURE_AMD_DCM ( 3*32+27) /* multi-node processor */ #define X86_FEATURE_APERFMPERF ( 3*32+28) /* APERFMPERF */