mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + reboot-disable-nonboot-cpus.patch added to -mm tree
@ 2012-06-22 20:57 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-06-22 20:57 UTC (permalink / raw)
  To: mm-commits
  Cc: per.forlin, gorcunov, hpa, keescook, linus.walleij, mingo, serue, tglx


The patch titled
     Subject: reboot: disable nonboot CPUs
has been added to the -mm tree.  Its filename is
     reboot-disable-nonboot-cpus.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
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();
 }
 
_
Subject: Subject: reboot: disable nonboot CPUs

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

reboot-disable-nonboot-cpus.patch


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-22 20:57 + reboot-disable-nonboot-cpus.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).