8 #ifdef ARCH_HAS_NMI_WATCHDOG
13 * Check to see if a callback exists and execute it. Return 1
14 * if the handler exists and was handled successfully.
16 int do_nmi_callback(struct pt_regs
*regs
, int cpu
);
19 extern void default_do_nmi(struct pt_regs
*);
22 extern void die_nmi(char *str
, struct pt_regs
*regs
, int do_panic
);
23 extern int check_nmi_watchdog(void);
24 extern int nmi_watchdog_enabled
;
25 extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
26 extern int avail_to_resrv_perfctr_nmi(unsigned int);
27 extern int reserve_perfctr_nmi(unsigned int);
28 extern void release_perfctr_nmi(unsigned int);
29 extern int reserve_evntsel_nmi(unsigned int);
30 extern void release_evntsel_nmi(unsigned int);
32 extern void setup_apic_nmi_watchdog(void *);
33 extern void stop_apic_nmi_watchdog(void *);
34 extern void disable_timer_nmi_watchdog(void);
35 extern void enable_timer_nmi_watchdog(void);
36 extern int nmi_watchdog_tick(struct pt_regs
*regs
, unsigned reason
);
37 extern void cpu_nmi_set_wd_enabled(void);
39 extern atomic_t nmi_active
;
40 extern unsigned int nmi_watchdog
;
43 #define NMI_LOCAL_APIC 2
48 extern int proc_nmi_enabled(struct ctl_table
*, int , struct file
*,
49 void __user
*, size_t *, loff_t
*);
50 extern int unknown_nmi_panic
;
52 void __trigger_all_cpu_backtrace(void);
53 #define trigger_all_cpu_backtrace() __trigger_all_cpu_backtrace()
55 static inline void localise_nmi_watchdog(void)
57 if (nmi_watchdog
== NMI_IO_APIC
)
58 nmi_watchdog
= NMI_LOCAL_APIC
;
61 /* check if nmi_watchdog is active (ie was specified at boot) */
62 static inline int nmi_watchdog_active(void)
65 * actually it should be:
66 * return (nmi_watchdog == NMI_LOCAL_APIC ||
67 * nmi_watchdog == NMI_IO_APIC)
68 * but since they are power of two we could use a
71 return nmi_watchdog
& 0x3;
75 void lapic_watchdog_stop(void);
76 int lapic_watchdog_init(unsigned nmi_hz
);
77 int lapic_wd_event(unsigned nmi_hz
);
78 unsigned lapic_adjust_nmi_hz(unsigned hz
);
79 int lapic_watchdog_ok(void);
80 void disable_lapic_nmi_watchdog(void);
81 void enable_lapic_nmi_watchdog(void);
83 void restart_nmi(void);
85 #endif /* ASM_X86__NMI_H */
This page took 0.047991 seconds and 5 git commands to generate.