]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
percpu-remove-percpu_xxx-functions-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 25 Apr 2012 01:03:18 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:11 +0000 (15:17 +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);
 }
 
 /*