X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fipv4%2Fproc.c;h=d61e2a9d394d24d22d282deabba9fafeb088affa;hb=9593782585e0cf70babe787a8463d492a68b1744;hp=39d49dc333a7f0dc47e1bbd1f8d7a7c02c3f2cfb;hpb=25da0974601fc8096461f3d3f7ca3aab8e79adfb;p=powerpc.git diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 39d49dc333..d61e2a9d39 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -49,7 +49,7 @@ static int fold_prot_inuse(struct proto *proto) int res = 0; int cpu; - for (cpu = 0; cpu < NR_CPUS; cpu++) + for_each_possible_cpu(cpu) res += proto->stats[cpu].inuse; return res; @@ -91,7 +91,7 @@ fold_field(void *mib[], int offt) unsigned long res = 0; int i; - for_each_cpu(i) { + for_each_possible_cpu(i) { res += *(((unsigned long *) per_cpu_ptr(mib[0], i)) + offt); res += *(((unsigned long *) per_cpu_ptr(mib[1], i)) + offt); }