Home | History | Annotate | Download | only in linux

Lines Matching defs:epoch

45  *	All new srcu read sections get counted in the active epoch.
47 * epoch has zero readers. When a thread calls synchronize_srcu,
50 * number of readers in the now-draining epoch, and waits for the
58 * epoch.
135 unsigned epoch = gen & 1; /* active epoch */
138 cpu->src_count[epoch] += delta;
232 * readers on this CPU in the inactive epoch to the global count
240 unsigned gen, epoch;
247 epoch = 1 ^ (gen & 1); /* draining epoch */
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);
286 * epoch into the global count.
291 * Wait for the global count of users in the draining epoch to