Lines Matching defs:cpu
42 * sections, on each CPU we store two counts of numbers of
55 * no new readers -- srcu uses two counts per CPU instead of one
126 * Internal subroutine: Add delta to the local CPU's count of
134 struct srcu_cpu *cpu;
137 cpu = percpu_getref(srcu->srcu_percpu);
138 cpu->src_count[epoch] += delta;
166 * No stronger, inter-CPU memory barrier is needed: if there is
189 * All side effects have completed on this CPU before we
192 * No stronger, inter-CPU memory barrier is needed: if there is
232 * readers on this CPU in the inactive epoch to the global count
239 struct srcu_cpu *cpu;
250 cpu = percpu_getref(srcu->srcu_percpu);
251 local = cpu->src_count[epoch];
253 cpu->src_count[epoch] -= local; /* i.e., cpu->src_count[epoch] = 0 */
254 KASSERT(cpu->src_count[epoch] == 0);