]> git.baikalelectronics.ru Git - kernel.git/commit
x86 idle: remove mwait_idle() and "idle=mwait" cmdline param
authorLen Brown <len.brown@intel.com>
Sun, 10 Feb 2013 06:38:39 +0000 (01:38 -0500)
committerLen Brown <len.brown@intel.com>
Sun, 10 Feb 2013 08:03:41 +0000 (03:03 -0500)
commitffc3bcce16934e8307dca9f2d3d594daacbce3bd
treee2cfa5a6513e07d01e6b1fe935f09be8300d7bde
parent96043d4b5124666b74539bc06d52bac2e8e54b42
x86 idle: remove mwait_idle() and "idle=mwait" cmdline param

mwait_idle() is a C1-only idle loop intended to be more efficient
than HLT, starting on Pentium-4 HT-enabled processors.

But mwait_idle() has been replaced by the more general
mwait_idle_with_hints(), which handles both C1 and deeper C-states.
ACPI processor_idle and intel_idle use only mwait_idle_with_hints(),
and no longer use mwait_idle().

Here we simplify the x86 native idle code by removing mwait_idle(),
and the "idle=mwait" bootparam used to invoke it.

Since Linux 3.0 there has been a boot-time warning when "idle=mwait"
was invoked saying it would be removed in 2012.  This removal
was also noted in the (now removed:-) feature-removal-schedule.txt.

After this change, kernels configured with
(CONFIG_ACPI=n && CONFIG_INTEL_IDLE=n) when run on hardware
that supports MWAIT will simply use HLT.  If MWAIT is desired
on those systems, cpuidle and the cpuidle drivers above
can be enabled.

Signed-off-by: Len Brown <len.brown@intel.com>
Cc: x86@kernel.org
Documentation/kernel-parameters.txt
arch/x86/include/asm/processor.h
arch/x86/kernel/process.c
arch/x86/kernel/smpboot.c
drivers/acpi/processor_idle.c