--- zzzz-none-000/linux-2.6.19.2/include/asm-powerpc/current.h 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/include/asm-powerpc/current.h 2007-01-11 07:38:19.000000000 +0000 @@ -14,17 +14,7 @@ #ifdef __powerpc64__ #include -static inline struct task_struct *get_current(void) -{ - struct task_struct *task; - - __asm__ __volatile__("ld %0,%1(13)" - : "=r" (task) - : "i" (offsetof(struct paca_struct, __current))); - - return task; -} -#define current get_current() +#define current (get_paca()->__current) #else