x86: lfence fix
authorIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:38 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:38 +0000 (13:32 +0100)
LFENCE is available on XMM2 or higher Intel CPUs - not XMM or higher...

this caused boot failures on XMM1 & !XMM1 capable CPUs.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/intel.c

index 0a4abdb61ae4e3a89fd8ed5dbda1f0dd37279e24..5731de3e1bd1ae25265ae27bf427f3fd46512426 100644 (file)
@@ -203,7 +203,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
        }
 #endif
 
-       if (cpu_has_xmm)
+       if (cpu_has_xmm2)
                set_bit(X86_FEATURE_LFENCE_RDTSC, c->x86_capability);
        if (c->x86 == 15) {
                set_bit(X86_FEATURE_P4, c->x86_capability);