]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
parisc: Avoid stalled CPU warnings after system shutdown
authorHelge Deller <deller@gmx.de>
Wed, 29 Mar 2017 06:25:30 +0000 (08:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:35:07 +0000 (09:35 +0200)
commit 476e75a44b56038bee9207242d4bc718f6b4de06 upstream.

Commit 73580dac7618 ("parisc: Fix system shutdown halt") introduced an endless
loop for systems which don't provide a software power off function.  But the
soft lockup detector will detect this and report stalled CPUs after some time.
Avoid those unwanted warnings by disabling the soft lockup detector.

Fixes: 73580dac7618 ("parisc: Fix system shutdown halt")
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/process.c

index 9e2d98ee6f9c735608dbf59719adf9b8f15c9ab5..3286cbc7b9349c4893f3cc168adb33a8aef14e0b 100644 (file)
@@ -140,6 +140,8 @@ void machine_power_off(void)
        printk(KERN_EMERG "System shut down completed.\n"
               "Please power this system off now.");
 
+       /* prevent soft lockup/stalled CPU messages for endless loop. */
+       rcu_sysrq_start();
        for (;;);
 }