2008-10-23 12:26:29 +07:00
|
|
|
#ifndef _ASM_X86_NMI_H
|
|
|
|
#define _ASM_X86_NMI_H
|
2008-03-20 00:25:36 +07:00
|
|
|
|
|
|
|
#include <linux/pm.h>
|
|
|
|
#include <asm/irq.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
|
|
|
|
#ifdef ARCH_HAS_NMI_WATCHDOG
|
|
|
|
|
2008-05-24 22:36:31 +07:00
|
|
|
extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);
|
2008-03-20 00:25:36 +07:00
|
|
|
extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
|
|
|
|
extern int reserve_perfctr_nmi(unsigned int);
|
|
|
|
extern void release_perfctr_nmi(unsigned int);
|
|
|
|
extern int reserve_evntsel_nmi(unsigned int);
|
|
|
|
extern void release_evntsel_nmi(unsigned int);
|
|
|
|
|
|
|
|
struct ctl_table;
|
2009-09-24 05:57:19 +07:00
|
|
|
extern int proc_nmi_enabled(struct ctl_table *, int ,
|
2008-03-20 00:25:36 +07:00
|
|
|
void __user *, size_t *, loff_t *);
|
|
|
|
extern int unknown_nmi_panic;
|
|
|
|
|
2009-08-03 14:31:54 +07:00
|
|
|
void arch_trigger_all_cpu_backtrace(void);
|
|
|
|
#define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace
|
2008-03-20 00:25:36 +07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void stop_nmi(void);
|
|
|
|
void restart_nmi(void);
|
|
|
|
|
2008-10-23 12:26:29 +07:00
|
|
|
#endif /* _ASM_X86_NMI_H */
|