]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
percpu-remove-percpu_xxx-functions-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Apr 2012 00:08:07 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Apr 2012 03:22:02 +0000 (13:22 +1000)
Cc: Alex Shi <alex.shi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/include/asm/fpu-internal.h

index 5caaf43b7bd4b2e7b3046c08c213b0620ddcd83f..e9801b41f70de3cab4d2d2d26c9976efe39ebb5a 100644 (file)
@@ -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);
 }
 
 /*