[PATCH] x86: Add abilty to enable/disable nmi watchdog with sysctl
[deliverable/linux.git] / include / asm-i386 / nmi.h
1 /*
2 * linux/include/asm-i386/nmi.h
3 */
4 #ifndef ASM_NMI_H
5 #define ASM_NMI_H
6
7 #include <linux/pm.h>
8
9 /**
10 * do_nmi_callback
11 *
12 * Check to see if a callback exists and execute it. Return 1
13 * if the handler exists and was handled successfully.
14 */
15 int do_nmi_callback(struct pt_regs *regs, int cpu);
16
17 extern int nmi_watchdog_enabled;
18 extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
19 extern int avail_to_resrv_perfctr_nmi(unsigned int);
20 extern int reserve_perfctr_nmi(unsigned int);
21 extern void release_perfctr_nmi(unsigned int);
22 extern int reserve_evntsel_nmi(unsigned int);
23 extern void release_evntsel_nmi(unsigned int);
24
25 extern void setup_apic_nmi_watchdog (void *);
26 extern void disable_timer_nmi_watchdog(void);
27 extern void enable_timer_nmi_watchdog(void);
28 extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason);
29
30 extern atomic_t nmi_active;
31 extern unsigned int nmi_watchdog;
32 #define NMI_DEFAULT -1
33 #define NMI_NONE 0
34 #define NMI_IO_APIC 1
35 #define NMI_LOCAL_APIC 2
36 #define NMI_INVALID 3
37
38 #endif /* ASM_NMI_H */
This page took 0.04422 seconds and 6 git commands to generate.