X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fipv6%2Fproc.c;h=efee7a6301a81269c4678dc0bb18fe48c471bf96;hb=c13e569073b89eb75216a2551e89ae93ad1f9951;hp=4238b1ed886012a331b1c5dd16ddffa1ea2eaaae;hpb=3cfc15103aa56c2c7ee6dd312c24a8d1697bade1;p=linux-2.6-omap-h63xx.git diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 4238b1ed886..efee7a6301a 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c @@ -17,7 +17,6 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ -#include #include #include #include @@ -38,7 +37,7 @@ static int fold_prot_inuse(struct proto *proto) int res = 0; int cpu; - for_each_cpu(cpu) + for_each_possible_cpu(cpu) res += proto->stats[cpu].inuse; return res; @@ -140,7 +139,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); }