From: Andrew Morton Date: Thu, 12 Apr 2012 22:51:46 +0000 (+1000) Subject: percpu-remove-percpu_xxx-functions-fix X-Git-Tag: next-20120417~2^2~114 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0eb1dd9283de790b60b644b9f4a3395057898d8a;p=karo-tx-linux.git percpu-remove-percpu_xxx-functions-fix Cc: Alex Shi Signed-off-by: Andrew Morton --- diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h index 5caaf43b7bd4..e9801b41f70d 100644 --- a/arch/x86/include/asm/fpu-internal.h +++ b/arch/x86/include/asm/fpu-internal.h @@ -290,14 +290,14 @@ static inline int __thread_has_fpu(struct task_struct *tsk) static inline void __thread_clear_has_fpu(struct task_struct *tsk) { tsk->thread.fpu.has_fpu = 0; - percpu_write(fpu_owner_task, NULL); + __this_cpu_write(fpu_owner_task, NULL); } /* Must be paired with a 'clts' before! */ static inline void __thread_set_has_fpu(struct task_struct *tsk) { tsk->thread.fpu.has_fpu = 1; - percpu_write(fpu_owner_task, tsk); + __this_cpu_write(fpu_owner_task, tsk); } /*