]> git.baikalelectronics.ru Git - kernel.git/commit
x86: disable mwait for AMD family 10H/11H CPUs
authorThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2008 20:55:26 +0000 (22:55 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 17 May 2008 20:57:20 +0000 (22:57 +0200)
commitd83acfcfa21247f65f5e7089cf5723c41141b363
treeba75fcf20f221c3db04aaee49db36c5f73f71622
parentee4ef343cbd88d09c70b1fe798d4d622b86b63ea
x86: disable mwait for AMD family 10H/11H CPUs

The previous revert of f97202987731c945d7ab5c7eabd8365deeaa2220 left
out the mwait disable condition for AMD family 10H/11H CPUs.

Andreas Herrman said:

It depends on the CPU. For AMD CPUs that support MWAIT this is wrong.
Family 0x10 and 0x11 CPUs will enter C1 on HLT. Powersavings then
depend on a clock divisor and current Pstate of the core.

If all cores of a processor are in halt state (C1) the processor can
enter the C1E (C1 enhanced) state. If mwait is used this will never
happen.

Thus HLT saves more power than MWAIT here.

It might be best to switch off the mwait flag for these AMD CPU
families like it was introduced with commit
81df362f315da3bcd8039feab85c584aeda77a3e (x86: Don't use MWAIT on AMD
Family 10)

Re-add the AMD families 10H/11H check and disable the mwait usage for
those.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/process.c