percpu_counters: use for_each_online_cpu()
commitb4ef0296f214a1e0e65f161f88663b0ca1acca31
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 16 Jul 2007 06:39:51 +0000 (15 23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:41 +0000 (16 09:05 -0700)
tree57d0aa7e7201b6becf3bc69763e3efb090a297ce
parentc67ad917cbf21b2862e2cf8e8b28339872ef7927
percpu_counters: use for_each_online_cpu()

Now that we have implemented hotunplug-time counter spilling,
percpu_counter_sum() only needs to look at online CPUs.

Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/percpu_counter.c