* [PATCH] [POWERPC] pasemi: Move cpus to hold loop before restart
@ 2007-11-07 15:41 Olof Johansson
0 siblings, 0 replies; only message in thread
From: Olof Johansson @ 2007-11-07 15:41 UTC (permalink / raw)
To: linuxppc-dev
[POWERPC] pasemi: Move cpus to hold loop before restart
Use smp_send_stop() to move all cpus besides the one executing reboot
into a hold loop, to keep them from being in powersavings mode at the
time of reboot.
Signed-off-by: Olof Johansson <olof@lixom.net>
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
index bd85853..14dace7 100644
--- a/arch/powerpc/platforms/pasemi/setup.c
+++ b/arch/powerpc/platforms/pasemi/setup.c
@@ -60,6 +60,9 @@ static int num_mce_regs;
static void pas_restart(char *cmd)
{
+ /* Need to put others cpu in hold loop so they're not sleeping */
+ smp_send_stop();
+ udelay(10000);
printk("Restarting...\n");
while (1)
out_le32(reset_reg, 0x6000000);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-07 15:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 15:41 [PATCH] [POWERPC] pasemi: Move cpus to hold loop before restart Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox