Skip to content

Commit

Permalink
[PATCH] i386: Move mce_disabled to asm/mce.h
Browse files Browse the repository at this point in the history
Allows external actors to disable mce.

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

===================================================================
  • Loading branch information
Rusty Russell authored and Andi Kleen committed Feb 13, 2007
1 parent 992af68 commit 105fddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/cpu/mcheck/mce.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <linux/init.h>
#include <asm/mce.h>

void amd_mcheck_init(struct cpuinfo_x86 *c);
void intel_p4_mcheck_init(struct cpuinfo_x86 *c);
Expand All @@ -9,6 +10,5 @@ void winchip_mcheck_init(struct cpuinfo_x86 *c);
/* 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;

2 changes: 2 additions & 0 deletions include/asm-i386/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ extern void mcheck_init(struct cpuinfo_x86 *c);
#else
#define mcheck_init(c) do {} while(0)
#endif

extern int mce_disabled;

0 comments on commit 105fddb

Please sign in to comment.