mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix paranoia about using BIOS quickboot mechanism.
@ 2008-04-04 23:49 Alok Kataria
  2008-04-07  8:22 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Alok Kataria @ 2008-04-04 23:49 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel, Daniel Arai, Zachary Amsden


Make sure that we clear the "shutdown status flag" in the CMOS register
after each CPU is brought up.  This fixes a problem where the "shutdown
status flag" may remain set when a CPU is brought up after booting.

Tested on the X86 tree.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
Signed-off-by: Dan Arai <arai@vmware.com>

---
arch/x86/kernel/smpboot.c |   10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 5321e35..0b8bba8 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1010,6 +1010,11 @@ do_rest:
/* mark "stuck" area as not stuck */
*((volatile unsigned long *)trampoline_base) = 0;

+ /*
+ * Cleanup possible dangling ends...
+ */
+ smpboot_restore_warm_reset_vector();
+
return boot_error;
}

@@ -1263,11 +1268,6 @@ void __init native_smp_prepare_boot_cpu(void)

void __init native_smp_cpus_done(unsigned int max_cpus)
{
- /*
- * Cleanup possible dangling ends...
- */
- smpboot_restore_warm_reset_vector();
-
Dprintk("Boot done.\n");

impress_friends();
-- 
1.5.4





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

end of thread, other threads:[~2008-04-08 20:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-04 23:49 [PATCH] Fix paranoia about using BIOS quickboot mechanism Alok Kataria
2008-04-07  8:22 ` Ingo Molnar
2008-04-07 18:38   ` Alok Kataria
2008-04-08 20:48     ` Alok Kataria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®