x86/mwait_idle: export both C1 and C1E
authorLen Brown <len.brown@intel.com>
Fri, 30 Aug 2013 08:59:09 +0000 (10:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Aug 2013 08:59:09 +0000 (10:59 +0200)
commit91413b51963127d435cfba38e382e81188527ef5
tree442fdbcd3fdd3df564a01957a6dded995ef1e1d1
parent3642ba0f692cfa9319fdeca82268238daba23794
x86/mwait_idle: export both C1 and C1E

Here we disable HW promotion of C1 to C1E and export both C1 and C1E
as distinct C-states.

This allows a cpuidle governor to choose a lower latency C-state than
C1E when necessary to satisfy performance and QOS constraints -- and
still save power versus polling.
This also corrects the erroneous latency previously reported for C1E
-- it is 10usec, not 1usec.

Signed-off-by: Len Brown <len.brown@intel.com>
Avoided the effect of changing the meaning of "max_cstate=".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/cpu/mwait-idle.c
xen/include/asm-x86/msr-index.h