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/kernel/cpu | |
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/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 4221e920886d..b50e38d16888 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -903,10 +903,7 @@ void __cpuinit pda_init(int cpu) | |||
903 | pda->kernelstack = (unsigned long)stack_thread_info() - | 903 | pda->kernelstack = (unsigned long)stack_thread_info() - |
904 | PDA_STACKOFFSET + THREAD_SIZE; | 904 | PDA_STACKOFFSET + THREAD_SIZE; |
905 | 905 | ||
906 | if (cpu == 0) { | 906 | if (cpu != 0) { |
907 | /* others are initialized in smpboot.c */ | ||
908 | pda->pcurrent = &init_task; | ||
909 | } else { | ||
910 | if (pda->nodenumber == 0 && cpu_to_node(cpu) != NUMA_NO_NODE) | 907 | if (pda->nodenumber == 0 && cpu_to_node(cpu) != NUMA_NO_NODE) |
911 | pda->nodenumber = cpu_to_node(cpu); | 908 | pda->nodenumber = cpu_to_node(cpu); |
912 | } | 909 | } |