Changeset e3306d04 in mainline for kernel/generic/src
- Timestamp:
- 2018-09-07T15:54:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f1d850
- Parents:
- 036e97c
- Location:
- kernel/generic/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/cht.c
r036e97c re3306d04 537 537 h->new_b = NULL; 538 538 h->op = op; 539 atomic_s et(&h->item_cnt, 0);540 atomic_s et(&h->resize_reqs, 0);539 atomic_store(&h->item_cnt, 0); 540 atomic_store(&h->resize_reqs, 0); 541 541 542 542 if (NULL == op->remove_callback) { -
kernel/generic/src/cap/cap.c
r036e97c re3306d04 353 353 kobject_ops_t *ops) 354 354 { 355 atomic_s et(&kobj->refcnt, 1);355 atomic_store(&kobj->refcnt, 1); 356 356 kobj->type = type; 357 357 kobj->raw = raw; -
kernel/generic/src/console/console.c
r036e97c re3306d04 202 202 203 203 event_set_unmask_callback(EVENT_KIO, kio_update); 204 atomic_s et(&kio_inited, true);204 atomic_store(&kio_inited, true); 205 205 } 206 206 -
kernel/generic/src/ipc/ipc.c
r036e97c re3306d04 154 154 list_initialize(&box->answers); 155 155 list_initialize(&box->irq_notifs); 156 atomic_s et(&box->active_calls, 0);156 atomic_store(&box->active_calls, 0); 157 157 box->task = task; 158 158 } … … 204 204 phone->callee = NULL; 205 205 phone->state = IPC_PHONE_FREE; 206 atomic_s et(&phone->active_calls, 0);206 atomic_store(&phone->active_calls, 0); 207 207 phone->kobject = NULL; 208 208 } -
kernel/generic/src/lib/halt.c
r036e97c re3306d04 57 57 58 58 if (!atomic_load(&haltstate)) { 59 atomic_s et(&haltstate, 1);59 atomic_store(&haltstate, 1); 60 60 rundebugger = true; 61 61 } 62 62 #else 63 atomic_s et(&haltstate, 1);63 atomic_store(&haltstate, 1); 64 64 #endif 65 65 -
kernel/generic/src/log/log.c
r036e97c re3306d04 94 94 { 95 95 event_set_unmask_callback(EVENT_KLOG, log_update); 96 atomic_s et(&log_inited, true);96 atomic_store(&log_inited, true); 97 97 } 98 98 -
kernel/generic/src/proc/task.c
r036e97c re3306d04 166 166 return rc; 167 167 168 atomic_s et(&task->refcount, 0);169 atomic_s et(&task->lifecount, 0);168 atomic_store(&task->refcount, 0); 169 atomic_store(&task->lifecount, 0); 170 170 171 171 irq_spinlock_initialize(&task->lock, "task_t_lock"); -
kernel/generic/src/proc/thread.c
r036e97c re3306d04 240 240 THREAD = NULL; 241 241 242 atomic_s et(&nrdy, 0);242 atomic_store(&nrdy, 0); 243 243 thread_cache = slab_cache_create("thread_t", sizeof(thread_t), 0, 244 244 thr_constructor, thr_destructor, 0); -
kernel/generic/src/smp/smp_call.c
r036e97c re3306d04 246 246 * messing up the preemption count). 247 247 */ 248 atomic_s et(&call_info->pending, 1);248 atomic_store(&call_info->pending, 1); 249 249 250 250 /* Let initialization complete before continuing. */ … … 259 259 */ 260 260 memory_barrier(); 261 atomic_s et(&call_info->pending, 0);261 atomic_store(&call_info->pending, 0); 262 262 } 263 263 -
kernel/generic/src/synch/rcu.c
r036e97c 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);
Note:
See TracChangeset
for help on using the changeset viewer.