summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/nmi.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-08-28 14:27:19 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-31 14:26:00 +1000
commit70412c55d419e971785094e9f7880fdbcd690520 (patch)
tree2b5d1f8c8a49983b361e77f9663f6647de2b8ab6 /arch/powerpc/include/asm/nmi.h
parentb68b1d7487195d17bdd7e06f183acfb896eafcc7 (diff)
powerpc/64: Fix watchdog configuration regressions
This fixes a couple more bits of fallout from the new hard lockup watchdog patch. It restores the required hw_nmi_get_sample_period() function for the perf watchdog, and removes some function declarations on 64e that are only defined for 64s. This fixes the 64e build when the hardlockup detector is enabled. It restores the default behaviour of disabling the perf watchdog, and also fixes disabling the 64s watchdog when running as a guest. Fixes: 2104180a53 ("powerpc/64s: implement arch-specific hardlockup watchdog") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/nmi.h')
-rw-r--r--arch/powerpc/include/asm/nmi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/nmi.h b/arch/powerpc/include/asm/nmi.h
index 6f8e79cd35d8..3760150a0ff0 100644
--- a/arch/powerpc/include/asm/nmi.h
+++ b/arch/powerpc/include/asm/nmi.h
@@ -1,9 +1,8 @@
#ifndef _ASM_NMI_H
#define _ASM_NMI_H
-#ifdef CONFIG_HARDLOCKUP_DETECTOR
+#ifdef CONFIG_PPC_WATCHDOG
extern void arch_touch_nmi_watchdog(void);
-
extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
bool exclude_self);
#define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace