X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Fia64%2Fkernel%2Fmodule.c;h=158e3c51bb771fb5efb5d3424c7efda4c68905bf;hb=8ce7a9c159c8c4eb480f0a65c6af753dbf9a1a70;hp=f1aca7cffd120879e446e703a8783f93c36f6654;hpb=80bd6d7f5e0d872a0f5a151473d2a39d95d210a8;p=linux-2.6-omap-h63xx.git diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c index f1aca7cffd1..158e3c51bb7 100644 --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c @@ -25,7 +25,6 @@ SEGREL64LSB */ -#include #include #include @@ -947,8 +946,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 */