]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()
authorShawn Guo <shawn.guo@linaro.org>
Fri, 7 Sep 2012 00:24:27 +0000 (10:24 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:25 +0000 (15:36 +1000)
As kernel_power_off() calls disable_nonboot_cpus(), we may also want to
have kernel_restart() call disable_nonboot_cpus().  Doing so can help
machines that require boot cpu be the last alive cpu during reboot to
survive with kernel restart.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sys.c

index 241507f23eca097871bec58f5976476f352f3d75..6fab59a1fc24d965e8c2e936d5e80e91e623592c 100644 (file)
@@ -368,6 +368,7 @@ EXPORT_SYMBOL(unregister_reboot_notifier);
 void kernel_restart(char *cmd)
 {
        kernel_restart_prepare(cmd);
+       disable_nonboot_cpus();
        if (!cmd)
                printk(KERN_EMERG "Restarting system.\n");
        else