aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/percpu_counter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index 8901c4e9c2e6..cf22c617baa4 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -45,7 +45,7 @@ s64 percpu_counter_sum(struct percpu_counter *fbc)
45 45
46 spin_lock(&fbc->lock); 46 spin_lock(&fbc->lock);
47 ret = fbc->count; 47 ret = fbc->count;
48 for_each_possible_cpu(cpu) { 48 for_each_online_cpu(cpu) {
49 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); 49 s32 *pcount = per_cpu_ptr(fbc->counters, cpu);
50 ret += *pcount; 50 ret += *pcount;
51 } 51 }