* [PATCH] fix boot breakage caused by x86: boot secondary cpus through initial_code
@ 2008-10-30 21:08 James Bottomley
2008-10-30 21:22 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: James Bottomley @ 2008-10-30 21:08 UTC (permalink / raw)
To: linux-kernel; +Cc: Glauber Costa
>From 01d1cd30acbcdab745ebc90c73d5fa4a27ce1d5c Mon Sep 17 00:00:00 2001
From: James Bottomley <James.Bottomley@HansenPartnership.com>
Date: Wed, 29 Oct 2008 14:50:04 -0500
Subject: [VOYAGER] make non boot CPUs work again
This commit:
commit 3e9704739daf46a8ba6593d749c67b5f7cd633d2
Author: Glauber Costa <gcosta@redhat.com>
Date: Wed May 28 13:01:54 2008 -0300
x86: boot secondary cpus through initial_code
removed the use of initialize_secondary. However, it didn't update
voyager, so the secondary cpus no longer boot. Fix this by adding the
initial_code switch to voyager as well.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
arch/x86/mach-voyager/voyager_smp.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/arch/x86/mach-voyager/voyager_smp.c b/arch/x86/mach-voyager/voyager_smp.c
index 0f6e8a6..9cd327a 100644
--- a/arch/x86/mach-voyager/voyager_smp.c
+++ b/arch/x86/mach-voyager/voyager_smp.c
@@ -90,6 +90,7 @@ static void ack_vic_irq(unsigned int irq);
static void vic_enable_cpi(void);
static void do_boot_cpu(__u8 cpuid);
static void do_quad_bootstrap(void);
+static void initialize_secondary(void);
int hard_smp_processor_id(void);
int safe_smp_processor_id(void);
@@ -650,6 +651,8 @@ void __init smp_boot_cpus(void)
smp_tune_scheduling();
*/
smp_store_cpu_info(boot_cpu_id);
+ /* setup the jump vector */
+ initial_code = (unsigned long)initialize_secondary;
printk("CPU%d: ", boot_cpu_id);
print_cpu_info(&cpu_data(boot_cpu_id));
@@ -702,7 +705,7 @@ void __init smp_boot_cpus(void)
/* Reload the secondary CPUs task structure (this function does not
* return ) */
-void __init initialize_secondary(void)
+static void __init initialize_secondary(void)
{
#if 0
// AC kernels only
--
1.5.6.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix boot breakage caused by x86: boot secondary cpus through initial_code
2008-10-30 21:08 [PATCH] fix boot breakage caused by x86: boot secondary cpus through initial_code James Bottomley
@ 2008-10-30 21:22 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-10-30 21:22 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-kernel, Glauber Costa
* James Bottomley <James.Bottomley@HansenPartnership.com> wrote:
> >From 01d1cd30acbcdab745ebc90c73d5fa4a27ce1d5c Mon Sep 17 00:00:00 2001
> From: James Bottomley <James.Bottomley@HansenPartnership.com>
> Date: Wed, 29 Oct 2008 14:50:04 -0500
> Subject: [VOYAGER] make non boot CPUs work again
>
> This commit:
>
> commit 3e9704739daf46a8ba6593d749c67b5f7cd633d2
> Author: Glauber Costa <gcosta@redhat.com>
> Date: Wed May 28 13:01:54 2008 -0300
>
> x86: boot secondary cpus through initial_code
>
> removed the use of initialize_secondary. However, it didn't update
> voyager, so the secondary cpus no longer boot. Fix this by adding the
> initial_code switch to voyager as well.
>
> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
> ---
> arch/x86/mach-voyager/voyager_smp.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
applied to tip/x86/urgent, thanks James!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-30 21:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 21:08 [PATCH] fix boot breakage caused by x86: boot secondary cpus through initial_code James Bottomley
2008-10-30 21:22 ` Ingo Molnar
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®