projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[]
[deliverable/linux.git]
/
lib
/
percpu_counter.c
diff --git
a/lib/percpu_counter.c
b/lib/percpu_counter.c
index 119174494cb5c096eaf5b1da239dbd5a4040ebc0..a8663890a88c2e358f21b8cdc6f23a8ebb9d77e5 100644
(file)
--- a/
lib/percpu_counter.c
+++ b/
lib/percpu_counter.c
@@
-62,7
+62,10
@@
s64 __percpu_counter_sum(struct percpu_counter *fbc)
for_each_online_cpu(cpu) {
s32 *pcount = per_cpu_ptr(fbc->counters, cpu);
ret += *pcount;
+ *pcount = 0;
}
+ fbc->count = ret;
+
spin_unlock(&fbc->lock);
return ret;
}
This page took
0.024336 seconds
and
5
git commands to generate.