aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2013-08-30 10:58:21 +0200
committerJan Beulich <jbeulich@suse.com>2013-08-30 10:58:21 +0200
commit3642ba0f692cfa9319fdeca82268238daba23794 (patch)
tree5a9306754e307342515d6fcb6f6751bf645eb2df /xen/include
parentc6066e78f4a66005b0d5d86c6ade32e2ab78923a (diff)
downloadxen-3642ba0f692cfa9319fdeca82268238daba23794.tar.gz
xen-3642ba0f692cfa9319fdeca82268238daba23794.tar.bz2
xen-3642ba0f692cfa9319fdeca82268238daba23794.zip
x86/mwait_idle: remove assumption of one C-state per MWAIT flag
Remove the assumption that cstate_tables are indexed by MWAIT flag values. Each entry identifies itself via its own flags value. This change is needed to support multiple states that share the same MWAIT flags. Note that this can have an effect on what state is described by 'N' on cmdline max_cstate=N on some systems. Signed-off-by: Len Brown <len.brown@intel.com> Avoided the effect of changing the meaning of "max_cstate=". Drop MWAIT_MAX_NUM_CSTATES (done differently in a prior patch on Linux). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include')
-rw-r--r--xen/include/asm-x86/mwait.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/xen/include/asm-x86/mwait.h b/xen/include/asm-x86/mwait.h
index 3ad3d9ca1d..ba9c0ea096 100644
--- a/xen/include/asm-x86/mwait.h
+++ b/xen/include/asm-x86/mwait.h
@@ -4,7 +4,6 @@
#define MWAIT_SUBSTATE_MASK 0xf
#define MWAIT_CSTATE_MASK 0xf
#define MWAIT_SUBSTATE_SIZE 4
-#define MWAIT_MAX_NUM_CSTATES 8
#define CPUID_MWAIT_LEAF 5
#define CPUID5_ECX_EXTENSIONS_SUPPORTED 0x1