]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
intel_idle: remove assumption of one C-state per MWAIT flag
authorLen Brown <len.brown@intel.com>
Sat, 2 Feb 2013 04:37:30 +0000 (23:37 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 9 Feb 2013 00:29:16 +0000 (19:29 -0500)
commite022e7eb90f3edb83f9ff77825eda3d1b3a2f2e0
tree3bfc121a7534712af7ca04f4d2ac6f23582a6479
parent137ecc779c80138723677209730738d76262e810
intel_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 intel_idle.max_cstate=N on some systems.

intel_idle.max_cstate=0 still disables the driver
intel_idle.max_cstate=1 still results in just C1(E)
However, "place holders" in the sparse C-state name-space
(eg. Atom) have been removed.

Signed-off-by: Len Brown <len.brown@intel.com>
arch/x86/include/asm/mwait.h
drivers/idle/intel_idle.c