aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/nmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/nmi.h')
-rw-r--r--include/asm-i386/nmi.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/include/asm-i386/nmi.h b/include/asm-i386/nmi.h
index da0e0b4e9139..34d6bf063b6e 100644
--- a/include/asm-i386/nmi.h
+++ b/include/asm-i386/nmi.h
@@ -6,24 +6,13 @@
6 6
7#include <linux/pm.h> 7#include <linux/pm.h>
8 8
9struct pt_regs;
10
11typedef int (*nmi_callback_t)(struct pt_regs * regs, int cpu);
12
13/**
14 * set_nmi_callback
15 *
16 * Set a handler for an NMI. Only one handler may be
17 * set. Return 1 if the NMI was handled.
18 */
19void set_nmi_callback(nmi_callback_t callback);
20
21/** 9/**
22 * unset_nmi_callback 10 * do_nmi_callback
23 * 11 *
24 * Remove the handler previously set. 12 * Check to see if a callback exists and execute it. Return 1
13 * if the handler exists and was handled successfully.
25 */ 14 */
26void unset_nmi_callback(void); 15int do_nmi_callback(struct pt_regs *regs, int cpu);
27 16
28extern int avail_to_resrv_perfctr_nmi_bit(unsigned int); 17extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
29extern int avail_to_resrv_perfctr_nmi(unsigned int); 18extern int avail_to_resrv_perfctr_nmi(unsigned int);
@@ -33,8 +22,6 @@ extern int reserve_evntsel_nmi(unsigned int);
33extern void release_evntsel_nmi(unsigned int); 22extern void release_evntsel_nmi(unsigned int);
34 23
35extern void setup_apic_nmi_watchdog (void *); 24extern void setup_apic_nmi_watchdog (void *);
36extern int reserve_lapic_nmi(void);
37extern void release_lapic_nmi(void);
38extern void disable_timer_nmi_watchdog(void); 25extern void disable_timer_nmi_watchdog(void);
39extern void enable_timer_nmi_watchdog(void); 26extern void enable_timer_nmi_watchdog(void);
40extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); 27extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason);