Changes in kernel/generic/src/synch/rcu.c [05882233:e3306d04] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/rcu.c
r05882233 re3306d04 312 312 313 313 mutex_initialize(&rcu.barrier_mtx, MUTEX_PASSIVE); 314 atomic_s et(&rcu.barrier_wait_cnt, 0);314 atomic_store(&rcu.barrier_wait_cnt, 0); 315 315 waitq_initialize(&rcu.barrier_wq); 316 316 … … 322 322 rcu.req_gp_end_cnt = 0; 323 323 rcu.req_expedited_cnt = 0; 324 atomic_s et(&rcu.delaying_cpu_cnt, 0);324 atomic_store(&rcu.delaying_cpu_cnt, 0); 325 325 #endif 326 326 … … 594 594 * enqueued barrier callbacks start signaling completion. 595 595 */ 596 atomic_s et(&rcu.barrier_wait_cnt, 1);596 atomic_store(&rcu.barrier_wait_cnt, 1); 597 597 598 598 DEFINE_CPU_MASK(cpu_mask); … … 1412 1412 static void interrupt_delaying_cpus(cpu_mask_t *cpu_mask) 1413 1413 { 1414 atomic_s et(&rcu.delaying_cpu_cnt, 0);1414 atomic_store(&rcu.delaying_cpu_cnt, 0); 1415 1415 1416 1416 sample_cpus(cpu_mask, NULL); … … 1477 1477 static bool wait_for_delaying_cpus(void) 1478 1478 { 1479 int delaying_cpu_cnt = atomic_ get(&rcu.delaying_cpu_cnt);1479 int delaying_cpu_cnt = atomic_load(&rcu.delaying_cpu_cnt); 1480 1480 1481 1481 for (int i = 0; i < delaying_cpu_cnt; ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.