2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* linux/include/linux/nmi.h
|
|
|
|
*/
|
|
|
|
#ifndef LINUX_NMI_H
|
|
|
|
#define LINUX_NMI_H
|
|
|
|
|
2006-09-29 10:59:03 +02:00
|
|
|
#include <linux/sched.h>
|
2005-04-17 00:20:36 +02:00
|
|
|
#include <asm/irq.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* touch_nmi_watchdog - restart NMI watchdog timeout.
|
|
|
|
*
|
|
|
|
* If the architecture supports the NMI watchdog, touch_nmi_watchdog()
|
|
|
|
* may be used to reset the timeout - for code which intentionally
|
|
|
|
* disables interrupts for a long time. This call is stateless.
|
|
|
|
*/
|
|
|
|
#ifdef ARCH_HAS_NMI_WATCHDOG
|
2006-12-07 02:14:01 +01:00
|
|
|
#include <asm/nmi.h>
|
2005-04-17 00:20:36 +02:00
|
|
|
extern void touch_nmi_watchdog(void);
|
2007-02-13 13:26:24 +01:00
|
|
|
extern void acpi_nmi_disable(void);
|
|
|
|
extern void acpi_nmi_enable(void);
|
2005-04-17 00:20:36 +02:00
|
|
|
#else
|
2007-02-13 13:26:24 +01:00
|
|
|
static inline void touch_nmi_watchdog(void)
|
|
|
|
{
|
|
|
|
touch_softlockup_watchdog();
|
|
|
|
}
|
|
|
|
static inline void acpi_nmi_disable(void) { }
|
|
|
|
static inline void acpi_nmi_enable(void) { }
|
2005-04-17 00:20:36 +02:00
|
|
|
#endif
|
|
|
|
|
2006-12-07 02:14:01 +01:00
|
|
|
#ifndef trigger_all_cpu_backtrace
|
|
|
|
#define trigger_all_cpu_backtrace() do { } while (0)
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
#endif
|