From: Ingo Molnar Date: Fri, 1 Feb 2008 22:45:18 +0000 (+0100) Subject: x86: fix bootup crash in native_read_tsc() X-Git-Tag: v2.6.25-rc1~1077 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa6299926950c8dfe2fea638276cad6def092bc9;p=platform%2Fkernel%2Flinux-3.10.git x86: fix bootup crash in native_read_tsc() fix bootup crash in native_read_tsc() that was reported on an Athlon-XP and bisected. The correct feature boundary for X86_FEATURE_MFENCE_RDTSC is not XMM but XMM2. Signed-off-by: Ingo Molnar Acked-by: H. Peter Anvin Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 06fa159..693e353 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -304,7 +304,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) if (c->x86 < 6) clear_bit(X86_FEATURE_MCE, c->x86_capability); - if (cpu_has_xmm) + if (cpu_has_xmm2) set_bit(X86_FEATURE_MFENCE_RDTSC, c->x86_capability); }