diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-02-01 17:45:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 18:00:26 -0500 |
commit | aa6299926950c8dfe2fea638276cad6def092bc9 (patch) | |
tree | 5fe27952926b60302ea43212e8ed6640c444812d /arch/x86 | |
parent | f3191248bf1bf6627c04c5624904df45e0a979ed (diff) |
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 <mingo@elte.hu>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 06fa159232fd..693e353999cd 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) | |||
304 | if (c->x86 < 6) | 304 | if (c->x86 < 6) |
305 | clear_bit(X86_FEATURE_MCE, c->x86_capability); | 305 | clear_bit(X86_FEATURE_MCE, c->x86_capability); |
306 | 306 | ||
307 | if (cpu_has_xmm) | 307 | if (cpu_has_xmm2) |
308 | set_bit(X86_FEATURE_MFENCE_RDTSC, c->x86_capability); | 308 | set_bit(X86_FEATURE_MFENCE_RDTSC, c->x86_capability); |
309 | } | 309 | } |
310 | 310 | ||