All of lore.kernel.org
 help / color / mirror / Atom feed
* [nacked] reboot-disable-nonboot-cpus.patch removed from -mm tree
@ 2012-06-22 21:39 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-06-22 21:39 UTC (permalink / raw)
  To: per.forlin, gorcunov, hpa, keescook, linus.walleij, mingo, serue,
	tglx, mm-commits


The patch titled
     Subject: reboot: disable nonboot CPUs
has been removed from the -mm tree.  Its filename was
     reboot-disable-nonboot-cpus.patch

This patch was dropped because it was nacked

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
From: Per Forlin <per.forlin@stericsson.com>
Subject: reboot: disable nonboot CPUs

I have run into an issue on an ARM platform that prevents reboot unless
the nonboot CPUs are brought down safetly.  

Disable the nonboot CPUs to safely migrate tasks and interrupts to the
boot CPU.  This will prevent the nonboot CPUs to interfer or block the
boot CPU from being able to reboot the system successfully.

Is there a reason for disabling nonboot CPUs for power_off but not reboot?

I could make this patch ARM specific but I thought that other ARCHs may
benefit from this patch too.

Signed-off-by: Per Forlin <per.forlin@stericsson.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/sys.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN kernel/sys.c~reboot-disable-nonboot-cpus kernel/sys.c
--- a/kernel/sys.c~reboot-disable-nonboot-cpus
+++ a/kernel/sys.c
@@ -323,6 +323,7 @@ void kernel_restart_prepare(char *cmd)
 	system_state = SYSTEM_RESTART;
 	usermodehelper_disable();
 	device_shutdown();
+	disable_nonboot_cpus();
 	syscore_shutdown();
 }
 
_

Patches currently in -mm which might be from per.forlin@stericsson.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-22 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-22 21:39 [nacked] reboot-disable-nonboot-cpus.patch removed from -mm tree akpm

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.