2 * linux/include/asm-i386/nmi.h
10 #ifdef ARCH_HAS_NMI_WATCHDOG
15 * Check to see if a callback exists and execute it. Return 1
16 * if the handler exists and was handled successfully.
18 int do_nmi_callback(struct pt_regs *regs, int cpu);
20 extern int nmi_watchdog_enabled;
21 extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
22 extern int avail_to_resrv_perfctr_nmi(unsigned int);
23 extern int reserve_perfctr_nmi(unsigned int);
24 extern void release_perfctr_nmi(unsigned int);
25 extern int reserve_evntsel_nmi(unsigned int);
26 extern void release_evntsel_nmi(unsigned int);
28 extern void setup_apic_nmi_watchdog (void *);
29 extern void stop_apic_nmi_watchdog (void *);
30 extern void disable_timer_nmi_watchdog(void);
31 extern void enable_timer_nmi_watchdog(void);
32 extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason);
34 extern atomic_t nmi_active;
35 extern unsigned int nmi_watchdog;
36 #define NMI_DISABLED -1
39 #define NMI_LOCAL_APIC 2
41 #define NMI_DEFAULT NMI_DISABLED
45 extern int proc_nmi_enabled(struct ctl_table *, int , struct file *,
46 void __user *, size_t *, loff_t *);
47 extern int unknown_nmi_panic;
49 void __trigger_all_cpu_backtrace(void);
50 #define trigger_all_cpu_backtrace() __trigger_all_cpu_backtrace()
54 void lapic_watchdog_stop(void);
55 int lapic_watchdog_init(unsigned nmi_hz);
56 int lapic_wd_event(unsigned nmi_hz);
57 unsigned lapic_adjust_nmi_hz(unsigned hz);
58 int lapic_watchdog_ok(void);
59 void disable_lapic_nmi_watchdog(void);
60 void enable_lapic_nmi_watchdog(void);
62 void restart_nmi(void);
64 #endif /* ASM_NMI_H */