[PATCH] reboot: disable nonboot CPUs

From: Per Forlin
Date: Thu Jun 14 2012 - 17:27:25 EST


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.

Signed-off-by: Per Forlin <per.forlin@xxxxxxxxxxxxxx>
---
Is there a reason for disable nonboot CPUs only for power_off but not reboot?

I have run into an issue on an ARM platform that prevents reboot unless
the nonboot CPUs are brought down safetly. I could make this patch ARM
specific but I thought that other ARCHs may benefit from this patch too.

kernel/sys.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index f0ec44d..0eaa8e0 100644
--- a/kernel/sys.c
+++ b/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();
}

--
1.7.8

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/