diff options
Diffstat (limited to 'arch/x86/kernel/cpu/bugs.c')
-rw-r--r-- | arch/x86/kernel/cpu/bugs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 205fd5ba57f7..9b95edcfc6ae 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/utsname.h> | 11 | #include <linux/utsname.h> |
12 | #include <asm/bugs.h> | 12 | #include <asm/bugs.h> |
13 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
14 | #include <asm/processor-flags.h> | ||
14 | #include <asm/i387.h> | 15 | #include <asm/i387.h> |
15 | #include <asm/msr.h> | 16 | #include <asm/msr.h> |
16 | #include <asm/paravirt.h> | 17 | #include <asm/paravirt.h> |
@@ -35,7 +36,7 @@ __setup("mca-pentium", mca_pentium); | |||
35 | static int __init no_387(char *s) | 36 | static int __init no_387(char *s) |
36 | { | 37 | { |
37 | boot_cpu_data.hard_math = 0; | 38 | boot_cpu_data.hard_math = 0; |
38 | write_cr0(0xE | read_cr0()); | 39 | write_cr0(X86_CR0_TS | X86_CR0_EM | X86_CR0_MP | read_cr0()); |
39 | return 1; | 40 | return 1; |
40 | } | 41 | } |
41 | 42 | ||
@@ -153,7 +154,7 @@ static void __init check_config(void) | |||
153 | * If we configured ourselves for a TSC, we'd better have one! | 154 | * If we configured ourselves for a TSC, we'd better have one! |
154 | */ | 155 | */ |
155 | #ifdef CONFIG_X86_TSC | 156 | #ifdef CONFIG_X86_TSC |
156 | if (!cpu_has_tsc && !tsc_disable) | 157 | if (!cpu_has_tsc) |
157 | panic("Kernel compiled for Pentium+, requires TSC feature!"); | 158 | panic("Kernel compiled for Pentium+, requires TSC feature!"); |
158 | #endif | 159 | #endif |
159 | 160 | ||