--- include/linux/percpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/include/linux/percpu.h =================================================================== --- linux-2.6.orig/include/linux/percpu.h 2007-11-20 16:28:53.224125374 -0800 +++ linux-2.6/include/linux/percpu.h 2007-11-20 16:44:59.954594229 -0800 @@ -74,7 +74,7 @@ static inline unsigned long __cpu_offset { int shift = CONFIG_CPU_AREA_ORDER + PAGE_SHIFT; - return (unsigned long)cpu_area + (cpu << shift); + return (unsigned long)cpu_area + (NR_CPUS << shift) - (cpu << shift); } static inline unsigned long cpu_offset(unsigned long cpu)