]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: Suspend lockup detectors before system halt
authorHelge Deller <deller@gmx.de>
Tue, 25 Jul 2017 19:41:41 +0000 (21:41 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 25 Jul 2017 19:43:38 +0000 (21:43 +0200)
Some machines can't power off the machine, so disable the lockup detectors to
avoid this watchdog BUG to show up every few seconds:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-shutdow:1]

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # 4.9+
arch/parisc/kernel/process.c

index b64d7d21646ed50c4a5c1f046b0f8ca758abfcc6..a45a67d526f8ca8001fd1d06625b3b233d5a3835 100644 (file)
@@ -53,6 +53,7 @@
 #include <linux/uaccess.h>
 #include <linux/rcupdate.h>
 #include <linux/random.h>
+#include <linux/nmi.h>
 
 #include <asm/io.h>
 #include <asm/asm-offsets.h>
@@ -145,6 +146,7 @@ void machine_power_off(void)
 
        /* prevent soft lockup/stalled CPU messages for endless loop. */
        rcu_sysrq_start();
+       lockup_detector_suspend();
        for (;;);
 }