diff options
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.h | 4 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_64.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.h b/arch/x86/kernel/cpu/mcheck/mce.h index 2d1a54bdadfc..cd6cffcc2de0 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.h +++ b/arch/x86/kernel/cpu/mcheck/mce.h | |||
@@ -1,14 +1,14 @@ | |||
1 | #include <linux/init.h> | 1 | #include <linux/init.h> |
2 | #include <asm/mce.h> | 2 | #include <asm/mce.h> |
3 | 3 | ||
4 | #ifdef CONFIG_X86_32 | ||
5 | |||
6 | void amd_mcheck_init(struct cpuinfo_x86 *c); | 4 | void amd_mcheck_init(struct cpuinfo_x86 *c); |
7 | void intel_p4_mcheck_init(struct cpuinfo_x86 *c); | 5 | void intel_p4_mcheck_init(struct cpuinfo_x86 *c); |
8 | void intel_p5_mcheck_init(struct cpuinfo_x86 *c); | 6 | void intel_p5_mcheck_init(struct cpuinfo_x86 *c); |
9 | void intel_p6_mcheck_init(struct cpuinfo_x86 *c); | 7 | void intel_p6_mcheck_init(struct cpuinfo_x86 *c); |
10 | void winchip_mcheck_init(struct cpuinfo_x86 *c); | 8 | void winchip_mcheck_init(struct cpuinfo_x86 *c); |
11 | 9 | ||
10 | #ifdef CONFIG_X86_32 | ||
11 | |||
12 | /* Call the installed machine check handler for this CPU setup. */ | 12 | /* Call the installed machine check handler for this CPU setup. */ |
13 | extern void (*machine_check_vector)(struct pt_regs *, long error_code); | 13 | extern void (*machine_check_vector)(struct pt_regs *, long error_code); |
14 | 14 | ||
diff --git a/arch/x86/kernel/cpu/mcheck/mce_64.c b/arch/x86/kernel/cpu/mcheck/mce_64.c index ce48ae75e1dc..2e2c3d2e9586 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_64.c | |||
@@ -37,6 +37,10 @@ | |||
37 | #include <asm/msr.h> | 37 | #include <asm/msr.h> |
38 | #include <asm/smp.h> | 38 | #include <asm/smp.h> |
39 | 39 | ||
40 | #include "mce.h" | ||
41 | |||
42 | #ifdef CONFIG_X86_64 | ||
43 | |||
40 | #define MISC_MCELOG_MINOR 227 | 44 | #define MISC_MCELOG_MINOR 227 |
41 | 45 | ||
42 | atomic_t mce_entry; | 46 | atomic_t mce_entry; |
@@ -1241,7 +1245,7 @@ static __init int mce_init_device(void) | |||
1241 | 1245 | ||
1242 | device_initcall(mce_init_device); | 1246 | device_initcall(mce_init_device); |
1243 | 1247 | ||
1244 | #ifdef CONFIG_X86_32 | 1248 | #else /* CONFIG_X86_32: */ |
1245 | 1249 | ||
1246 | int mce_disabled; | 1250 | int mce_disabled; |
1247 | 1251 | ||