* It is now possible to use percpu operations for pda access since the pda is in the percpu area. Drop the pda operations. Thus: read_pda --> x86_read_percpu write_pda --> x86_write_percpu add_pda (+1) --> x86_inc_percpu or_pda --> x86_or_percpu Based on linux-2.6.tip/master Signed-off-by: Christoph Lameter Signed-off-by: Mike Travis --- include/asm-x86/current.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.tip.orig/include/asm-x86/current.h 2008-07-01 10:41:33.000000000 -0700 +++ linux-2.6.tip/include/asm-x86/current.h 2008-07-01 10:49:13.764285143 -0700 @@ -17,12 +17,13 @@ static __always_inline struct task_struc #ifndef __ASSEMBLY__ #include +#include struct task_struct; static __always_inline struct task_struct *get_current(void) { - return read_pda(pcurrent); + return x86_read_percpu(pda.pcurrent); } #else /* __ASSEMBLY__ */ -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/