diff options
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/acpi/sleep.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/head64.c | 7 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c index 9ff67f8dc2c0..4abff454c55b 100644 --- a/arch/x86/kernel/acpi/sleep.c +++ b/arch/x86/kernel/acpi/sleep.c | |||
@@ -101,7 +101,7 @@ int acpi_save_state_mem(void) | |||
101 | stack_start.sp = temp_stack + sizeof(temp_stack); | 101 | stack_start.sp = temp_stack + sizeof(temp_stack); |
102 | early_gdt_descr.address = | 102 | early_gdt_descr.address = |
103 | (unsigned long)get_cpu_gdt_table(smp_processor_id()); | 103 | (unsigned long)get_cpu_gdt_table(smp_processor_id()); |
104 | initial_gs = (unsigned long)cpu_pda(smp_processor_id()); | 104 | initial_gs = per_cpu_offset(smp_processor_id()); |
105 | #endif | 105 | #endif |
106 | initial_code = (unsigned long)wakeup_long64; | 106 | initial_code = (unsigned long)wakeup_long64; |
107 | saved_magic = 0x123456789abcdef0; | 107 | saved_magic = 0x123456789abcdef0; |
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 71b6f6ec96a2..af67d3227ea6 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -26,11 +26,6 @@ | |||
26 | #include <asm/bios_ebda.h> | 26 | #include <asm/bios_ebda.h> |
27 | #include <asm/trampoline.h> | 27 | #include <asm/trampoline.h> |
28 | 28 | ||
29 | void __init x86_64_init_pda(void) | ||
30 | { | ||
31 | pda_init(0); | ||
32 | } | ||
33 | |||
34 | static void __init zap_identity_mappings(void) | 29 | static void __init zap_identity_mappings(void) |
35 | { | 30 | { |
36 | pgd_t *pgd = pgd_offset_k(0UL); | 31 | pgd_t *pgd = pgd_offset_k(0UL); |
@@ -96,7 +91,7 @@ void __init x86_64_start_kernel(char * real_mode_data) | |||
96 | if (console_loglevel == 10) | 91 | if (console_loglevel == 10) |
97 | early_printk("Kernel alive\n"); | 92 | early_printk("Kernel alive\n"); |
98 | 93 | ||
99 | x86_64_init_pda(); | 94 | pda_init(0); |
100 | 95 | ||
101 | x86_64_start_reservations(real_mode_data); | 96 | x86_64_start_reservations(real_mode_data); |
102 | } | 97 | } |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index f2f77ca494d4..2f0e0f1090f6 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -798,7 +798,7 @@ do_rest: | |||
798 | #else | 798 | #else |
799 | cpu_pda(cpu)->pcurrent = c_idle.idle; | 799 | cpu_pda(cpu)->pcurrent = c_idle.idle; |
800 | clear_tsk_thread_flag(c_idle.idle, TIF_FORK); | 800 | clear_tsk_thread_flag(c_idle.idle, TIF_FORK); |
801 | initial_gs = (unsigned long)cpu_pda(cpu); | 801 | initial_gs = per_cpu_offset(cpu); |
802 | #endif | 802 | #endif |
803 | early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu); | 803 | early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu); |
804 | initial_code = (unsigned long)start_secondary; | 804 | initial_code = (unsigned long)start_secondary; |