X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fcore%2Fneighbour.c;h=e68700f950a55d3cff784a54d655001a7da30dec;hb=15578eeb6cd4b74492f26e60624aa1a9a52ddd7b;hp=1dcf7fa1f0fead6dc2469d0a478025284921e804;hpb=fac84ef26759a3725bfc53ae3abf21976360aff3;p=powerpc.git diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 1dcf7fa1f0..e68700f950 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1625,12 +1625,9 @@ static int neightbl_fill_info(struct neigh_table *tbl, struct sk_buff *skb, memset(&ndst, 0, sizeof(ndst)); - for (cpu = 0; cpu < NR_CPUS; cpu++) { + for_each_cpu(cpu) { struct neigh_statistics *st; - if (!cpu_possible(cpu)) - continue; - st = per_cpu_ptr(tbl->stats, cpu); ndst.ndts_allocs += st->allocs; ndst.ndts_destroys += st->destroys;