diff options
author | Don Zickus <dzickus@redhat.com> | 2010-11-29 17:07:16 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-12-09 18:01:06 -0500 |
commit | 96a84c20d635fb1e98ab92f9fc517c4441f5c424 (patch) | |
tree | 0bbc7fef23879f1f468e4521ca22bb0585a001ac /arch/x86 | |
parent | 2c6cb1053ad8b61ab9fb50b578d0ffea959f7583 (diff) |
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: Don Zickus <dzickus@redhat.com>
Reviewed-by: Cyrill 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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/apic/hw_nmi.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c index 057f1ebebe0c..2e94eb493591 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 | ||