diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-01-18 10:38:58 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-18 10:38:58 -0500 |
commit | c6f5e0acd5d12ee23f701f15889872e67b47caa6 (patch) | |
tree | a4613618f06d7519f954745b893b4f572ecd39d9 /arch/x86/xen/smp.c | |
parent | ea9279066de44053d0c20ea855bc9f4706652d84 (diff) |
x86-64: Move current task from PDA to per-cpu and consolidate with 32-bit.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/xen/smp.c')
-rw-r--r-- | arch/x86/xen/smp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 9ff3b0999cfb..72c2eb9b64cd 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c | |||
@@ -279,12 +279,11 @@ static int __cpuinit xen_cpu_up(unsigned int cpu) | |||
279 | struct task_struct *idle = idle_task(cpu); | 279 | struct task_struct *idle = idle_task(cpu); |
280 | int rc; | 280 | int rc; |
281 | 281 | ||
282 | per_cpu(current_task, cpu) = idle; | ||
282 | #ifdef CONFIG_X86_32 | 283 | #ifdef CONFIG_X86_32 |
283 | init_gdt(cpu); | 284 | init_gdt(cpu); |
284 | per_cpu(current_task, cpu) = idle; | ||
285 | irq_ctx_init(cpu); | 285 | irq_ctx_init(cpu); |
286 | #else | 286 | #else |
287 | cpu_pda(cpu)->pcurrent = idle; | ||
288 | clear_tsk_thread_flag(idle, TIF_FORK); | 287 | clear_tsk_thread_flag(idle, TIF_FORK); |
289 | #endif | 288 | #endif |
290 | xen_setup_timer(cpu); | 289 | xen_setup_timer(cpu); |