--- include/asm-x86/percpu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Index: linux-2.6/include/asm-x86/percpu.h =================================================================== --- linux-2.6.orig/include/asm-x86/percpu.h 2007-11-24 23:28:11.892600902 -0800 +++ linux-2.6/include/asm-x86/percpu.h 2007-11-24 23:30:04.396100176 -0800 @@ -16,8 +16,10 @@ #define __my_cpu_offset read_pda(data_offset) #define per_cpu_offset(x) (__per_cpu_offset(x)) - #endif + +#define __percpu_seg "%%gs:" + #include DECLARE_PER_CPU(struct x8664_pda, pda); @@ -80,6 +82,7 @@ DECLARE_PER_CPU(struct x8664_pda, pda); /* We can use this directly for local CPU (faster). */ DECLARE_PER_CPU(unsigned long, this_cpu_off); +#endif /* For arch-specific code, we can use direct single-insn ops (they * don't give an lvalue though). */ @@ -138,5 +141,4 @@ extern void __bad_percpu_size(void); #define x86_sub_percpu(var,val) percpu_to_op("sub", per_cpu__##var, val) #define x86_or_percpu(var,val) percpu_to_op("or", per_cpu__##var, val) #endif /* !__ASSEMBLY__ */ -#endif /* !CONFIG_X86_64 */ #endif /* _ASM_X86_PERCPU_H_ */