aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-voyager
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2009-01-26 22:56:48 -0500
committerTejun Heo <tj@kernel.org>2009-01-26 22:56:48 -0500
commit89c9c4c58ee86e6e8802597271f23679e0c46647 (patch)
treeeb22bb5577e84f2f1fdcc90d0f293f66673c8910 /arch/x86/mach-voyager
parent34019be1cd2941128b5de6d7c0fbdb51f967d268 (diff)
x86: make Voyager use x86 per-cpu setup.
Impact: standardize all x86 platforms on same setup code With the preceding changes, Voyager can use the same per-cpu setup code as all the other x86 platforms. Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/mach-voyager')
-rw-r--r--arch/x86/mach-voyager/voyager_smp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/mach-voyager/voyager_smp.c b/arch/x86/mach-voyager/voyager_smp.c
index 96f15b09a4c5..dd82f2052f34 100644
--- a/arch/x86/mach-voyager/voyager_smp.c
+++ b/arch/x86/mach-voyager/voyager_smp.c
@@ -531,7 +531,6 @@ static void __init do_boot_cpu(__u8 cpu)
531 stack_start.sp = (void *)idle->thread.sp; 531 stack_start.sp = (void *)idle->thread.sp;
532 532
533 init_gdt(cpu); 533 init_gdt(cpu);
534 per_cpu(this_cpu_off, cpu) = __per_cpu_offset[cpu];
535 per_cpu(current_task, cpu) = idle; 534 per_cpu(current_task, cpu) = idle;
536 early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu); 535 early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu);
537 irq_ctx_init(cpu); 536 irq_ctx_init(cpu);
@@ -1749,7 +1748,6 @@ static void __init voyager_smp_prepare_cpus(unsigned int max_cpus)
1749static void __cpuinit voyager_smp_prepare_boot_cpu(void) 1748static void __cpuinit voyager_smp_prepare_boot_cpu(void)
1750{ 1749{
1751 init_gdt(smp_processor_id()); 1750 init_gdt(smp_processor_id());
1752 per_cpu(this_cpu_off, cpu) = __per_cpu_offset[cpu];
1753 switch_to_new_gdt(); 1751 switch_to_new_gdt();
1754 1752
1755 cpu_set(smp_processor_id(), cpu_online_map); 1753 cpu_set(smp_processor_id(), cpu_online_map);
@@ -1782,7 +1780,6 @@ static void __init voyager_smp_cpus_done(unsigned int max_cpus)
1782void __init smp_setup_processor_id(void) 1780void __init smp_setup_processor_id(void)
1783{ 1781{
1784 current_thread_info()->cpu = hard_smp_processor_id(); 1782 current_thread_info()->cpu = hard_smp_processor_id();
1785 percpu_write(cpu_number, hard_smp_processor_id());
1786} 1783}
1787 1784
1788static void voyager_send_call_func(cpumask_t callmask) 1785static void voyager_send_call_func(cpumask_t callmask)