]> git.baikalelectronics.ru Git - kernel.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)
commit1a9983347526d54799260af2cbcefc1bd53d314d
tree3bfc121a7534712af7ca04f4d2ac6f23582a6479
parentcf22b78ef64fc75248b199faa359bdb12f6603ee
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