From 64315b6bec1c5b010e9cce0f174150cbab3ada22 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 25 Apr 2012 11:03:18 +1000 Subject: [PATCH] percpu-remove-percpu_xxx-functions-fix Cc: Alex Shi Signed-off-by: Andrew Morton --- arch/x86/include/asm/fpu-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /* -- 2.39.5