Skip to content

Commit

Permalink
x86: wipe get_nmi_reason out of nmi_64.h
Browse files Browse the repository at this point in the history
use mach_traps when it is supposed to be used.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 3cf19f3 commit e32ede1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/nmi_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <asm/proto.h>
#include <asm/mce.h>

#include <mach_traps.h>

int unknown_nmi_panic;
int nmi_watchdog_enabled;
int panic_on_unrecovered_nmi;
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/kernel/traps_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <linux/kdebug.h>
#include <linux/utsname.h>

#include <mach_traps.h>

#if defined(CONFIG_EDAC)
#include <linux/edac.h>
#endif
Expand Down
2 changes: 0 additions & 2 deletions include/asm-x86/nmi_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ static inline void unset_nmi_pm_callback(struct pm_dev * dev)
extern void default_do_nmi(struct pt_regs *);
extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);

#define get_nmi_reason() inb(0x61)

extern int unknown_nmi_panic;
extern int nmi_watchdog_enabled;

Expand Down

0 comments on commit e32ede1

Please sign in to comment.