aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-06-24 16:52:05 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:51:41 -0400
commitc376d45432d935e6f1e0ff2d6be3734bcd3ba455 (patch)
treec776405c9734a11e6947b55cd2c44e4d7ec1fcfb /include
parent2b6addad2d67a2d75ae10a1c8efd18d81d78ff82 (diff)
x86: nmi_watchdog - use NMI_NONE by default
There is no need to keep NMI_DISABLED definition and use it for nmi_watchdog by default. Here is the point why: - IO-APIC and APIC chips are programmed for nmi_watchdog support at very early stage of kernel booting and not having nmi_watchdog specified as boot option lead only to nmi_watchdog becomes to NMI_NONE anyway - enable nmi_watchdog thru /proc/sys/kernel/nmi if it was not specified at boot is not possible too (even having this sysfs entry) Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Cc: macro@linux-mips.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/nmi.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-x86/nmi.h b/include/asm-x86/nmi.h
index f0e435dd38fb..1348e542360f 100644
--- a/include/asm-x86/nmi.h
+++ b/include/asm-x86/nmi.h
@@ -20,7 +20,6 @@ extern void default_do_nmi(struct pt_regs *);
20#endif 20#endif
21 21
22extern void die_nmi(char *str, struct pt_regs *regs, int do_panic); 22extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);
23extern void nmi_watchdog_default(void);
24extern int check_nmi_watchdog(void); 23extern int check_nmi_watchdog(void);
25extern int nmi_watchdog_enabled; 24extern int nmi_watchdog_enabled;
26extern int avail_to_resrv_perfctr_nmi_bit(unsigned int); 25extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
@@ -38,12 +37,10 @@ extern int nmi_watchdog_tick(struct pt_regs *regs, unsigned reason);
38 37
39extern atomic_t nmi_active; 38extern atomic_t nmi_active;
40extern unsigned int nmi_watchdog; 39extern unsigned int nmi_watchdog;
41#define NMI_DISABLED -1
42#define NMI_NONE 0 40#define NMI_NONE 0
43#define NMI_IO_APIC 1 41#define NMI_IO_APIC 1
44#define NMI_LOCAL_APIC 2 42#define NMI_LOCAL_APIC 2
45#define NMI_INVALID 3 43#define NMI_INVALID 3
46#define NMI_DEFAULT NMI_DISABLED
47 44
48struct ctl_table; 45struct ctl_table;
49struct file; 46struct file;