diff options
-rw-r--r-- | arch/x86/kernel/apic/hw_nmi.c | 8 | ||||
-rw-r--r-- | include/linux/nmi.h | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c index 057f1ebebe0..2e94eb49359 100644 --- a/arch/x86/kernel/apic/hw_nmi.c +++ b/arch/x86/kernel/apic/hw_nmi.c | |||
@@ -24,8 +24,14 @@ u64 hw_nmi_get_sample_period(void) | |||
24 | } | 24 | } |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #ifndef CONFIG_HARDLOCKUP_DETECTOR | ||
28 | void touch_nmi_watchdog(void) | ||
29 | { | ||
30 | touch_softlockup_watchdog(); | ||
31 | } | ||
32 | EXPORT_SYMBOL(touch_nmi_watchdog); | ||
33 | #endif | ||
27 | #ifdef arch_trigger_all_cpu_backtrace | 34 | #ifdef arch_trigger_all_cpu_backtrace |
28 | |||
29 | /* For reliability, we're prepared to waste bits here. */ | 35 | /* For reliability, we're prepared to waste bits here. */ |
30 | static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; | 36 | static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; |
31 | 37 | ||
diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 1c451e6ecc1..17ccf44e7dc 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h | |||
@@ -16,7 +16,8 @@ | |||
16 | */ | 16 | */ |
17 | #ifdef ARCH_HAS_NMI_WATCHDOG | 17 | #ifdef ARCH_HAS_NMI_WATCHDOG |
18 | #include <asm/nmi.h> | 18 | #include <asm/nmi.h> |
19 | #endif | 19 | extern void touch_nmi_watchdog(void); |
20 | #else | ||
20 | #ifndef CONFIG_HARDLOCKUP_DETECTOR | 21 | #ifndef CONFIG_HARDLOCKUP_DETECTOR |
21 | static inline void touch_nmi_watchdog(void) | 22 | static inline void touch_nmi_watchdog(void) |
22 | { | 23 | { |
@@ -25,6 +26,7 @@ static inline void touch_nmi_watchdog(void) | |||
25 | #else | 26 | #else |
26 | extern void touch_nmi_watchdog(void); | 27 | extern void touch_nmi_watchdog(void); |
27 | #endif | 28 | #endif |
29 | #endif | ||
28 | 30 | ||
29 | /* | 31 | /* |
30 | * Create trigger_all_cpu_backtrace() out of the arch-provided | 32 | * Create trigger_all_cpu_backtrace() out of the arch-provided |