diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-09-12 15:36:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-09-14 05:41:03 -0400 |
commit | 6554fd8cf06db86f861bb24d7487b2873ca444c4 (patch) | |
tree | ceea730e0faa861b89793f3667688e1ad16abe4c /include/linux/nmi.h | |
parent | 2406e3b166eee42777a6b0b38f52f924454474d7 (diff) |
watchdog/core: Provide interface to stop from poweroff()
PARISC has a a busy looping power off routine. If the watchdog is enabled
the watchdog timer will still fire, but the thread is not running, which
causes the softlockup watchdog to trigger.
Provide a interface which allows to turn the watchdog off.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Don Zickus <dzickus@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Ulrich Obergfell <uobergfe@redhat.com>
Cc: linux-parisc@vger.kernel.org
Link: http://lkml.kernel.org/r/20170912194146.327343752@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/nmi.h')
-rw-r--r-- | include/linux/nmi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/nmi.h b/include/linux/nmi.h index b24d4a58674a..85bb268be39c 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h | |||
@@ -12,10 +12,10 @@ | |||
12 | 12 | ||
13 | #ifdef CONFIG_LOCKUP_DETECTOR | 13 | #ifdef CONFIG_LOCKUP_DETECTOR |
14 | void lockup_detector_init(void); | 14 | void lockup_detector_init(void); |
15 | void lockup_detector_soft_poweroff(void); | ||
15 | #else | 16 | #else |
16 | static inline void lockup_detector_init(void) | 17 | static inline void lockup_detector_init(void) { } |
17 | { | 18 | static inline void lockup_detector_soft_poweroff(void) { } |
18 | } | ||
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | #ifdef CONFIG_SOFTLOCKUP_DETECTOR | 21 | #ifdef CONFIG_SOFTLOCKUP_DETECTOR |