x86: use cpuid to check MWAIT support for C1
authorThomas Gleixner <tglx@linutronix.de>
Mon, 9 Jun 2008 16:04:27 +0000 (18:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Jun 2008 13:52:21 +0000 (15:52 +0200)
cpuid(0x05) provides extended information about MWAIT in EDX when bit
0 of ECX is set. Bit 4-7 of EDX determine whether MWAIT is supported
for C1. C1E enabled CPUs have these bits set to 0.

Based on an earlier patch from Andi Kleen.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found