i386: Move mce_disabled to asm/mce.h From: Rusty Russell Allows external actors to disable mce. Signed-off-by: Rusty Russell Signed-off-by: Andi Kleen =================================================================== --- arch/i386/kernel/cpu/mcheck/mce.h | 2 +- include/asm-i386/mce.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) Index: linux/arch/i386/kernel/cpu/mcheck/mce.h =================================================================== --- linux.orig/arch/i386/kernel/cpu/mcheck/mce.h +++ linux/arch/i386/kernel/cpu/mcheck/mce.h @@ -1,4 +1,5 @@ #include +#include void amd_mcheck_init(struct cpuinfo_x86 *c); void intel_p4_mcheck_init(struct cpuinfo_x86 *c); @@ -9,6 +10,5 @@ void winchip_mcheck_init(struct cpuinfo_ /* Call the installed machine check handler for this CPU setup. */ extern fastcall void (*machine_check_vector)(struct pt_regs *, long error_code); -extern int mce_disabled; extern int nr_mce_banks; Index: linux/include/asm-i386/mce.h =================================================================== --- linux.orig/include/asm-i386/mce.h +++ linux/include/asm-i386/mce.h @@ -3,3 +3,5 @@ extern void mcheck_init(struct cpuinfo_x #else #define mcheck_init(c) do {} while(0) #endif + +extern int mce_disabled;