All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/sys.c: call disable_nonboot_cpus in kernel_restart
@ 2012-09-03 14:24 ` Shawn Guo
  0 siblings, 0 replies; 8+ messages in thread
From: Shawn Guo @ 2012-09-03 14:24 UTC (permalink / raw)
  To: linux-arm-kernel

Like kernel_power_off calls disable_nonboot_cpus, we may want to have
kernel_restart call disable_nonboot_cpus as well.  Doing so can help
the 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>
---
 kernel/sys.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 241507f..6fab59a 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
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-09-05  0:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-03 14:24 [PATCH] kernel/sys.c: call disable_nonboot_cpus in kernel_restart Shawn Guo
2012-09-03 14:24 ` Shawn Guo
2012-09-04 22:36 ` Andrew Morton
2012-09-04 22:36   ` Andrew Morton
2012-09-04 23:42   ` Stephen Boyd
2012-09-04 23:42     ` Stephen Boyd
2012-09-05  0:51   ` Shawn Guo
2012-09-05  0:51     ` Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.