x86, percpu: Add 'percpu_read_stable()' interface for cacheable accesses
[pandora-kernel.git] / arch / x86 / include / asm / current.h
index c68c361..4d447b7 100644 (file)
@@ -11,7 +11,7 @@ DECLARE_PER_CPU(struct task_struct *, current_task);
 
 static __always_inline struct task_struct *get_current(void)
 {
-       return percpu_read(current_task);
+       return percpu_read_stable(current_task);
 }
 
 #define current get_current()