diff options
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck/p5.c')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/p5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/p5.c b/arch/x86/kernel/cpu/mcheck/p5.c index 8812f5441830..015f481ab1b0 100644 --- a/arch/x86/kernel/cpu/mcheck/p5.c +++ b/arch/x86/kernel/cpu/mcheck/p5.c | |||
@@ -14,6 +14,9 @@ | |||
14 | 14 | ||
15 | #include "mce.h" | 15 | #include "mce.h" |
16 | 16 | ||
17 | /* By default disabled */ | ||
18 | int mce_p5_enable; | ||
19 | |||
17 | /* Machine check handler for Pentium class Intel CPUs: */ | 20 | /* Machine check handler for Pentium class Intel CPUs: */ |
18 | static void pentium_machine_check(struct pt_regs *regs, long error_code) | 21 | static void pentium_machine_check(struct pt_regs *regs, long error_code) |
19 | { | 22 | { |
@@ -44,9 +47,11 @@ void intel_p5_mcheck_init(struct cpuinfo_x86 *c) | |||
44 | if (!cpu_has(c, X86_FEATURE_MCE)) | 47 | if (!cpu_has(c, X86_FEATURE_MCE)) |
45 | return; | 48 | return; |
46 | 49 | ||
50 | #ifdef CONFIG_X86_OLD_MCE | ||
47 | /* Default P5 to off as its often misconnected: */ | 51 | /* Default P5 to off as its often misconnected: */ |
48 | if (mce_disabled != -1) | 52 | if (mce_disabled != -1) |
49 | return; | 53 | return; |
54 | #endif | ||
50 | 55 | ||
51 | machine_check_vector = pentium_machine_check; | 56 | machine_check_vector = pentium_machine_check; |
52 | /* Make sure the vector pointer is visible before we enable MCEs: */ | 57 | /* Make sure the vector pointer is visible before we enable MCEs: */ |