X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-i386%2Fcurrent.h;h=d3524853991203c36b2bbcc75671facabe59263e;hb=a267c0a887064720dfab5775a4f09b20b4f8ec37;hp=3cbbecd790161babf7fa1df4a7c549d4c2107276;hpb=fc03da1ca1954f103ed57daf90611cefa57b07e0;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-i386/current.h b/include/asm-i386/current.h index 3cbbecd7901..d3524853991 100644 --- a/include/asm-i386/current.h +++ b/include/asm-i386/current.h @@ -1,13 +1,15 @@ #ifndef _I386_CURRENT_H #define _I386_CURRENT_H -#include +#include +#include struct task_struct; -static __always_inline struct task_struct * get_current(void) +DECLARE_PER_CPU(struct task_struct *, current_task); +static __always_inline struct task_struct *get_current(void) { - return current_thread_info()->task; + return x86_read_percpu(current_task); } #define current get_current()