diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-30 17:08:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-30 17:53:08 -0400 |
commit | 08c33308575b370c89b4ed1198ece5f93145a2aa (patch) | |
tree | 60fc194d18efe7645cb6f90cfa6a8c58c787ea5c /arch/x86/mach-voyager/voyager_smp.c | |
parent | c08b6acc9b996ba6231105cb12a4125c957e0c97 (diff) |
x86/voyager: fix boot breakage caused by x86: boot secondary cpus through initial_code
Impact: boot up secondary CPUs as well on x86/Voyager systems
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>
Cc: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-voyager/voyager_smp.c')
-rw-r--r-- | 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 0f6e8a6523ae..9cd327a278ad 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); | |||
90 | static void vic_enable_cpi(void); | 90 | static void vic_enable_cpi(void); |
91 | static void do_boot_cpu(__u8 cpuid); | 91 | static void do_boot_cpu(__u8 cpuid); |
92 | static void do_quad_bootstrap(void); | 92 | static void do_quad_bootstrap(void); |
93 | static void initialize_secondary(void); | ||
93 | 94 | ||
94 | int hard_smp_processor_id(void); | 95 | int hard_smp_processor_id(void); |
95 | int safe_smp_processor_id(void); | 96 | int safe_smp_processor_id(void); |
@@ -650,6 +651,8 @@ void __init smp_boot_cpus(void) | |||
650 | smp_tune_scheduling(); | 651 | smp_tune_scheduling(); |
651 | */ | 652 | */ |
652 | smp_store_cpu_info(boot_cpu_id); | 653 | smp_store_cpu_info(boot_cpu_id); |
654 | /* setup the jump vector */ | ||
655 | initial_code = (unsigned long)initialize_secondary; | ||
653 | printk("CPU%d: ", boot_cpu_id); | 656 | printk("CPU%d: ", boot_cpu_id); |
654 | print_cpu_info(&cpu_data(boot_cpu_id)); | 657 | print_cpu_info(&cpu_data(boot_cpu_id)); |
655 | 658 | ||
@@ -702,7 +705,7 @@ void __init smp_boot_cpus(void) | |||
702 | 705 | ||
703 | /* Reload the secondary CPUs task structure (this function does not | 706 | /* Reload the secondary CPUs task structure (this function does not |
704 | * return ) */ | 707 | * return ) */ |
705 | void __init initialize_secondary(void) | 708 | static void __init initialize_secondary(void) |
706 | { | 709 | { |
707 | #if 0 | 710 | #if 0 |
708 | // AC kernels only | 711 | // AC kernels only |