x86: misc clean up after the percpu update
authorTejun Heo <tj@kernel.org>
Tue, 13 Jan 2009 11:41:35 +0000 (20:41 +0900)
committerIngo Molnar <mingo@elte.hu>
Fri, 16 Jan 2009 13:20:26 +0000 (14:20 +0100)
Do the following cleanups:

* kill x86_64_init_pda() which now is equivalent to pda_init()

* use per_cpu_offset() instead of cpu_pda() when initializing
  initial_gs

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/setup.h
arch/x86/kernel/acpi/sleep.c
arch/x86/kernel/head64.c
arch/x86/kernel/smpboot.c
arch/x86/xen/enlighten.c

index ebe858cdc8a3048f75ecc10526ee17753f97bc05..536949749bc263a193e08a7445854ef379024505 100644 (file)
@@ -100,7 +100,6 @@ extern unsigned long init_pg_tables_start;
 extern unsigned long init_pg_tables_end;
 
 #else
-void __init x86_64_init_pda(void);
 void __init x86_64_start_kernel(char *real_mode);
 void __init x86_64_start_reservations(char *real_mode_data);
 
index 9ff67f8dc2c016e8016bd90c8c35d9f0c0359388..4abff454c55b98ba3f3d6c28fbacb52a012e6095 100644 (file)
@@ -101,7 +101,7 @@ int acpi_save_state_mem(void)
        stack_start.sp = temp_stack + sizeof(temp_stack);
        early_gdt_descr.address =
                        (unsigned long)get_cpu_gdt_table(smp_processor_id());
-       initial_gs = (unsigned long)cpu_pda(smp_processor_id());
+       initial_gs = per_cpu_offset(smp_processor_id());
 #endif
        initial_code = (unsigned long)wakeup_long64;
        saved_magic = 0x123456789abcdef0;
index 71b6f6ec96a21176e92f8af3c34e2ebef527f1d2..af67d3227ea6fe7e6182f21030f687b78b4dd71b 100644 (file)
 #include <asm/bios_ebda.h>
 #include <asm/trampoline.h>
 
-void __init x86_64_init_pda(void)
-{
-       pda_init(0);
-}
-
 static void __init zap_identity_mappings(void)
 {
        pgd_t *pgd = pgd_offset_k(0UL);
@@ -96,7 +91,7 @@ void __init x86_64_start_kernel(char * real_mode_data)
        if (console_loglevel == 10)
                early_printk("Kernel alive\n");
 
-       x86_64_init_pda();
+       pda_init(0);
 
        x86_64_start_reservations(real_mode_data);
 }
index f2f77ca494d40ff188fd72cdbefce0ceea649c4a..2f0e0f1090f67abf3448be496bbedeab27b0fd5e 100644 (file)
@@ -798,7 +798,7 @@ do_rest:
 #else
        cpu_pda(cpu)->pcurrent = c_idle.idle;
        clear_tsk_thread_flag(c_idle.idle, TIF_FORK);
-       initial_gs = (unsigned long)cpu_pda(cpu);
+       initial_gs = per_cpu_offset(cpu);
 #endif
        early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu);
        initial_code = (unsigned long)start_secondary;
index 965539ec425f530e2c08309b7b9c9777078b8776..312414ef9365ce05e642b3cef212c984a27e30dd 100644 (file)
@@ -1645,7 +1645,7 @@ asmlinkage void __init xen_start_kernel(void)
 #ifdef CONFIG_X86_64
        /* Disable until direct per-cpu data access. */
        have_vcpu_info_placement = 0;
-       x86_64_init_pda();
+       pda_init(0);
 #endif
 
        xen_smp_init();