X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Fproc.c;fp=net%2Fipv6%2Fproc.c;h=4238b1ed886012a331b1c5dd16ddffa1ea2eaaae;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=efee7a6301a81269c4678dc0bb18fe48c471bf96;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index efee7a630..4238b1ed8 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c @@ -17,6 +17,7 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ +#include #include #include #include @@ -37,7 +38,7 @@ static int fold_prot_inuse(struct proto *proto) int res = 0; int cpu; - for_each_possible_cpu(cpu) + for_each_cpu(cpu) res += proto->stats[cpu].inuse; return res; @@ -139,7 +140,7 @@ fold_field(void *mib[], int offt) unsigned long res = 0; int i; - for_each_possible_cpu(i) { + for_each_cpu(i) { res += *(((unsigned long *)per_cpu_ptr(mib[0], i)) + offt); res += *(((unsigned long *)per_cpu_ptr(mib[1], i)) + offt); }