/* Add up all the per-cpu counts, return the result. This is a more accurate but much slower version of percpu_counter_read_positive()  */
s64 __percpu_counter_sum(struct percpu_counter *fbc)
/* Add up all the per-cpu counts, return the result. This is a more accurate but much slower version of percpu_counter_read_positive()  */
s64 __percpu_counter_sum(struct percpu_counter *fbc)
{
	s64 ret;
	int cpu;
	spin_lock(&fbc->lock);
	ret = fbc->count;
	for_each_online_cpu(cpu) {
		s32 *pcount = per_cpu_ptr(fbc->counters, cpu);
		ret += *pcount;
	}
	spin_unlock(&fbc->lock);
	return ret;
}