nmi.h 837 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * linux/include/linux/nmi.h
  3. */
  4. #ifndef LINUX_NMI_H
  5. #define LINUX_NMI_H
  6. #include <linux/sched.h>
  7. #include <asm/irq.h>
  8. /**
  9. * touch_nmi_watchdog - restart NMI watchdog timeout.
  10. *
  11. * If the architecture supports the NMI watchdog, touch_nmi_watchdog()
  12. * may be used to reset the timeout - for code which intentionally
  13. * disables interrupts for a long time. This call is stateless.
  14. */
  15. #ifdef ARCH_HAS_NMI_WATCHDOG
  16. #include <asm/nmi.h>
  17. extern void touch_nmi_watchdog(void);
  18. extern void acpi_nmi_disable(void);
  19. extern void acpi_nmi_enable(void);
  20. #else
  21. static inline void touch_nmi_watchdog(void)
  22. {
  23. touch_softlockup_watchdog();
  24. }
  25. static inline void acpi_nmi_disable(void) { }
  26. static inline void acpi_nmi_enable(void) { }
  27. #endif
  28. #ifndef trigger_all_cpu_backtrace
  29. #define trigger_all_cpu_backtrace() do { } while (0)
  30. #endif
  31. #endif