linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-generic / percpu.h
index c0caf43..9044aeb 100644 (file)
@@ -19,9 +19,10 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
 #define percpu_modcopy(pcpudst, src, size)                     \
 do {                                                           \
        unsigned int __i;                                       \
-       for_each_possible_cpu(__i)                              \
-               memcpy((pcpudst)+__per_cpu_offset[__i],         \
-                      (src), (size));                          \
+       for (__i = 0; __i < NR_CPUS; __i++)                     \
+               if (cpu_possible(__i))                          \
+                       memcpy((pcpudst)+__per_cpu_offset[__i], \
+                              (src), (size));                  \
 } while (0)
 #else /* ! SMP */