[PATCH] i386: Move mce_disabled to asm/mce.h

Allows external actors to disable mce.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andi Kleen <ak@suse.de>

===================================================================
This commit is contained in:
Rusty Russell 2007-02-13 13:26:26 +01:00 committed by Andi Kleen
parent 992af68147
commit 105fddb862
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include <linux/init.h> #include <linux/init.h>
#include <asm/mce.h>
void amd_mcheck_init(struct cpuinfo_x86 *c); void amd_mcheck_init(struct cpuinfo_x86 *c);
void intel_p4_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_x86 *c);
/* Call the installed machine check handler for this CPU setup. */ /* Call the installed machine check handler for this CPU setup. */
extern fastcall void (*machine_check_vector)(struct pt_regs *, long error_code); extern fastcall void (*machine_check_vector)(struct pt_regs *, long error_code);
extern int mce_disabled;
extern int nr_mce_banks; extern int nr_mce_banks;

View file

@ -3,3 +3,5 @@ extern void mcheck_init(struct cpuinfo_x86 *c);
#else #else
#define mcheck_init(c) do {} while(0) #define mcheck_init(c) do {} while(0)
#endif #endif
extern int mce_disabled;