diff options
Diffstat (limited to 'include/linux/nmi.h')
| -rw-r--r-- | include/linux/nmi.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 1d2a6ab6b8bb..9b2022ab4d85 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h | |||
| @@ -24,6 +24,19 @@ static inline void touch_nmi_watchdog(void) | |||
| 24 | } | 24 | } |
| 25 | #endif | 25 | #endif |
| 26 | 26 | ||
| 27 | #if defined(CONFIG_HARDLOCKUP_DETECTOR) | ||
| 28 | extern void watchdog_enable_hardlockup_detector(bool val); | ||
| 29 | extern bool watchdog_hardlockup_detector_is_enabled(void); | ||
| 30 | #else | ||
| 31 | static inline void watchdog_enable_hardlockup_detector(bool val) | ||
| 32 | { | ||
| 33 | } | ||
| 34 | static inline bool watchdog_hardlockup_detector_is_enabled(void) | ||
| 35 | { | ||
| 36 | return true; | ||
| 37 | } | ||
| 38 | #endif | ||
| 39 | |||
| 27 | /* | 40 | /* |
| 28 | * Create trigger_all_cpu_backtrace() out of the arch-provided | 41 | * Create trigger_all_cpu_backtrace() out of the arch-provided |
| 29 | * base function. Return whether such support was available, | 42 | * base function. Return whether such support was available, |
