]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ia64/kernel/module.c
Merge branch 'master'
[linux-2.6-omap-h63xx.git] / arch / ia64 / kernel / module.c
index f1aca7cffd120879e446e703a8783f93c36f6654..3a30cfc9574fd499cc5fa839ee34731aecf25e04 100644 (file)
@@ -947,8 +947,8 @@ void
 percpu_modcopy (void *pcpudst, const void *src, unsigned long size)
 {
        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);
+       }
 }
 #endif /* CONFIG_SMP */