aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.h4
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce_64.c6
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
6void amd_mcheck_init(struct cpuinfo_x86 *c); 4void amd_mcheck_init(struct cpuinfo_x86 *c);
7void intel_p4_mcheck_init(struct cpuinfo_x86 *c); 5void intel_p4_mcheck_init(struct cpuinfo_x86 *c);
8void intel_p5_mcheck_init(struct cpuinfo_x86 *c); 6void intel_p5_mcheck_init(struct cpuinfo_x86 *c);
9void intel_p6_mcheck_init(struct cpuinfo_x86 *c); 7void intel_p6_mcheck_init(struct cpuinfo_x86 *c);
10void winchip_mcheck_init(struct cpuinfo_x86 *c); 8void 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. */
13extern void (*machine_check_vector)(struct pt_regs *, long error_code); 13extern 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
42atomic_t mce_entry; 46atomic_t mce_entry;
@@ -1241,7 +1245,7 @@ static __init int mce_init_device(void)
1241 1245
1242device_initcall(mce_init_device); 1246device_initcall(mce_init_device);
1243 1247
1244#ifdef CONFIG_X86_32 1248#else /* CONFIG_X86_32: */
1245 1249
1246int mce_disabled; 1250int mce_disabled;
1247 1251