Commit 96a84c20 authored by Don Zickus's avatar Don Zickus Committed by Ingo Molnar

lockup detector: Compile fixes from removing the old x86 nmi watchdog

My patch that removed the old x86 nmi watchdog broke other
arches.  This change reverts a piece of that patch and puts the
change in the correct spot.
Signed-off-by: default avatarDon Zickus <dzickus@redhat.com>
Reviewed-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Cc: fweisbec@gmail.com
Cc: yinghai@kernel.org
LKML-Reference: <1291068437-5331-2-git-send-email-dzickus@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2c6cb105
...@@ -24,8 +24,14 @@ u64 hw_nmi_get_sample_period(void) ...@@ -24,8 +24,14 @@ u64 hw_nmi_get_sample_period(void)
} }
#endif #endif
#ifndef CONFIG_HARDLOCKUP_DETECTOR
void touch_nmi_watchdog(void)
{
touch_softlockup_watchdog();
}
EXPORT_SYMBOL(touch_nmi_watchdog);
#endif
#ifdef arch_trigger_all_cpu_backtrace #ifdef arch_trigger_all_cpu_backtrace
/* For reliability, we're prepared to waste bits here. */ /* For reliability, we're prepared to waste bits here. */
static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly;
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
*/ */
#ifdef ARCH_HAS_NMI_WATCHDOG #ifdef ARCH_HAS_NMI_WATCHDOG
#include <asm/nmi.h> #include <asm/nmi.h>
#endif extern void touch_nmi_watchdog(void);
#else
#ifndef CONFIG_HARDLOCKUP_DETECTOR #ifndef CONFIG_HARDLOCKUP_DETECTOR
static inline void touch_nmi_watchdog(void) static inline void touch_nmi_watchdog(void)
{ {
...@@ -25,6 +26,7 @@ static inline void touch_nmi_watchdog(void) ...@@ -25,6 +26,7 @@ static inline void touch_nmi_watchdog(void)
#else #else
extern void touch_nmi_watchdog(void); extern void touch_nmi_watchdog(void);
#endif #endif
#endif
/* /*
* Create trigger_all_cpu_backtrace() out of the arch-provided * Create trigger_all_cpu_backtrace() out of the arch-provided
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment