diff options
Diffstat (limited to 'arch/x86/xen/smp.c')
-rw-r--r-- | arch/x86/xen/smp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 88d5d5ec6beb..035582ae815d 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c | |||
@@ -170,8 +170,7 @@ static void __init xen_smp_prepare_boot_cpu(void) | |||
170 | 170 | ||
171 | /* We've switched to the "real" per-cpu gdt, so make sure the | 171 | /* We've switched to the "real" per-cpu gdt, so make sure the |
172 | old memory can be recycled */ | 172 | old memory can be recycled */ |
173 | make_lowmem_page_readwrite(__per_cpu_load + | 173 | make_lowmem_page_readwrite(xen_initial_gdt); |
174 | (unsigned long)&per_cpu_var(gdt_page)); | ||
175 | 174 | ||
176 | xen_setup_vcpu_info_placement(); | 175 | xen_setup_vcpu_info_placement(); |
177 | } | 176 | } |
@@ -287,6 +286,9 @@ static int __cpuinit xen_cpu_up(unsigned int cpu) | |||
287 | irq_ctx_init(cpu); | 286 | irq_ctx_init(cpu); |
288 | #else | 287 | #else |
289 | clear_tsk_thread_flag(idle, TIF_FORK); | 288 | clear_tsk_thread_flag(idle, TIF_FORK); |
289 | per_cpu(kernel_stack, cpu) = | ||
290 | (unsigned long)task_stack_page(idle) - | ||
291 | KERNEL_STACK_OFFSET + THREAD_SIZE; | ||
290 | #endif | 292 | #endif |
291 | xen_setup_timer(cpu); | 293 | xen_setup_timer(cpu); |
292 | xen_init_lock_cpu(cpu); | 294 | xen_init_lock_cpu(cpu); |