]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/ia64/kernel/module.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6
[mv-sheeva.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 */