From: Ingo Molnar Date: Wed, 30 Jan 2008 12:32:38 +0000 (+0100) Subject: x86: lfence fix X-Git-Tag: v2.6.25-rc1~1143^2~426 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6d5f718a497375f853d90247f5f6963368e89803;p=linux-2.6-omap-h63xx.git x86: lfence fix 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 Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 0a4abdb61ae..5731de3e1bd 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -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);