From: Linus Torvalds Date: Mon, 14 Sep 2009 15:01:28 +0000 (-0700) Subject: Merge branch 'x86-percpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel... X-Git-Tag: v2.6.32-rc1~706 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55e0715f612f19b44c17497929091df2f3357e5d;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Merge branch 'x86-percpu-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip * 'x86-percpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, percpu: Collect hot percpu variables into one cacheline x86, percpu: Fix DECLARE/DEFINE_PER_CPU_PAGE_ALIGNED() x86, percpu: Add 'percpu_read_stable()' interface for cacheable accesses --- 55e0715f612f19b44c17497929091df2f3357e5d diff --cc arch/x86/kernel/cpu/common.c index 55a6abe,1bd88ed..2055fc2 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@@ -1042,8 -1049,11 +1049,11 @@@ DEFINE_PER_CPU(struct orig_ist, orig_is #else /* CONFIG_X86_64 */ + DEFINE_PER_CPU(struct task_struct *, current_task) = &init_task; + EXPORT_PER_CPU_SYMBOL(current_task); + #ifdef CONFIG_CC_STACKPROTECTOR -DEFINE_PER_CPU(unsigned long, stack_canary); +DEFINE_PER_CPU_ALIGNED(struct stack_canary, stack_canary); #endif /* Make sure %fs and %gs are initialized properly in idle threads */