From e8fdafb62d35c2ab65f6b81e060d209252742873 Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Fri, 7 Sep 2012 10:24:27 +1000 Subject: [PATCH] kernel/sys.c: call disable_nonboot_cpus() in kernel_restart() 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 Signed-off-by: Andrew Morton --- kernel/sys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sys.c b/kernel/sys.c index 241507f23eca..6fab59a1fc24 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -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 -- 2.39.5