]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
parisc: Fix system shutdown halt
authorHelge Deller <deller@gmx.de>
Sat, 18 Mar 2017 16:13:27 +0000 (17:13 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:17:54 +0000 (14:17 -0600)
BugLink: http://bugs.launchpad.net/bugs/1676429
commit 73580dac7618e4bcd21679f553cf3c97323fec46 upstream.

On those parisc machines which don't provide a software power off
function, the system currently kills the init process at the end of a
shutdown and unexpectedly restarts insteads of halting.
Fix it by adding a loop which will not return.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/parisc/kernel/process.c

index ea6603ee8d24981abe93c5bc79477e626e54254a..9e2d98ee6f9c735608dbf59719adf9b8f15c9ab5 100644 (file)
@@ -139,6 +139,8 @@ void machine_power_off(void)
 
        printk(KERN_EMERG "System shut down completed.\n"
               "Please power this system off now.");
+
+       for (;;);
 }
 
 void (*pm_power_off)(void) = machine_power_off;