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 | 9af45651f1f7c89942e016a1a00a7ebddfa727f8 (patch) | |
tree | a22617474a2a62bc816b97c9156c5a2fc9a566b3 /arch/x86/kernel/process_64.c | |
parent | c6f5e0acd5d12ee23f701f15889872e67b47caa6 (diff) |
x86-64: Move kernelstack from PDA to per-cpu.
Also clean up PER_CPU_VAR usage in xen-asm_64.S
tj: * remove now unused stack_thread_info()
* s/kernelstack/kernel_stack/
* added FIXME comment in xen-asm_64.S
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index e00c31a4b3c0..6c5f57602108 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -620,9 +620,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
620 | write_pda(oldrsp, next->usersp); | 620 | write_pda(oldrsp, next->usersp); |
621 | percpu_write(current_task, next_p); | 621 | percpu_write(current_task, next_p); |
622 | 622 | ||
623 | write_pda(kernelstack, | 623 | percpu_write(kernel_stack, |
624 | (unsigned long)task_stack_page(next_p) + | 624 | (unsigned long)task_stack_page(next_p) + |
625 | THREAD_SIZE - PDA_STACKOFFSET); | 625 | THREAD_SIZE - KERNEL_STACK_OFFSET); |
626 | #ifdef CONFIG_CC_STACKPROTECTOR | 626 | #ifdef CONFIG_CC_STACKPROTECTOR |
627 | write_pda(stack_canary, next_p->stack_canary); | 627 | write_pda(stack_canary, next_p->stack_canary); |
628 | /* | 628 | /* |