]> err.no Git - linux-2.6/blobdiff - include/asm-generic/percpu.h
[PATCH] sata_nv: kill not-working hotplug code
[linux-2.6] / include / asm-generic / percpu.h
index 9044aeb3782887d33d4b65abfb27f20cf593b1e0..c0caf433a7d76dc99b8473f4145c250f3446e877 100644 (file)
@@ -19,10 +19,9 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
 #define percpu_modcopy(pcpudst, src, size)                     \
 do {                                                           \
        unsigned int __i;                                       \
-       for (__i = 0; __i < NR_CPUS; __i++)                     \
-               if (cpu_possible(__i))                          \
-                       memcpy((pcpudst)+__per_cpu_offset[__i], \
-                              (src), (size));                  \
+       for_each_possible_cpu(__i)                              \
+               memcpy((pcpudst)+__per_cpu_offset[__i],         \
+                      (src), (size));                          \
 } while (0)
 #else /* ! SMP */