Home
last modified time | relevance | path

Searched refs:done (Results 1 – 25 of 43) sorted by relevance

12

/kernel/
Dstop_machine.c70 static void cpu_stop_init_done(struct cpu_stop_done *done, unsigned int nr_todo) in cpu_stop_init_done() argument
72 memset(done, 0, sizeof(*done)); in cpu_stop_init_done()
73 atomic_set(&done->nr_todo, nr_todo); in cpu_stop_init_done()
74 init_completion(&done->completion); in cpu_stop_init_done()
78 static void cpu_stop_signal_done(struct cpu_stop_done *done) in cpu_stop_signal_done() argument
80 if (atomic_dec_and_test(&done->nr_todo)) in cpu_stop_signal_done()
81 complete(&done->completion); in cpu_stop_signal_done()
105 else if (work->done) in cpu_stop_queue_work()
106 cpu_stop_signal_done(work->done); in cpu_stop_queue_work()
141 struct cpu_stop_done done; in stop_one_cpu() local
[all …]
Dkthread.c48 struct completion *done; member
347 struct completion *done; in kthread() local
354 done = xchg(&create->done, NULL); in kthread()
355 if (!done) { in kthread()
380 complete(done); in kthread()
415 struct completion *done = xchg(&create->done, NULL); in create_kthread() local
418 if (!done) { in create_kthread()
423 complete(done); in create_kthread()
433 DECLARE_COMPLETION_ONSTACK(done); in __kthread_create_on_node()
443 create->done = &done; in __kthread_create_on_node()
[all …]
Dumh.c405 DECLARE_COMPLETION_ONSTACK(done); in call_usermodehelper_exec()
431 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec()
442 retval = wait_for_completion_state(&done, state | TASK_KILLABLE); in call_usermodehelper_exec()
458 wait_for_completion_state(&done, state); in call_usermodehelper_exec()
Dacct.c112 struct completion done; member
195 wait_for_completion(&acct->done); in acct_pin_kill()
209 complete(&acct->done); in close_work()
266 init_completion(&acct->done); in acct_on()
Dsmp.c1085 struct completion done; member
1103 complete(&sscs->done); in smp_call_on_cpu_callback()
1109 .done = COMPLETION_INITIALIZER_ONSTACK(sscs.done), in smp_call_on_cpu()
1121 wait_for_completion(&sscs.done); in smp_call_on_cpu()
Dstatic_call_inline.c143 goto done; in __static_call_update()
154 goto done; in __static_call_update()
214 done: in __static_call_update()
Dwatch_queue.c105 bool done = false; in post_one_notification() local
141 done = true; in post_one_notification()
145 if (done) in post_one_notification()
147 return done; in post_one_notification()
Dwatchdog.c643 struct completion *done = this_cpu_ptr(&softlockup_completion); in watchdog_enable() local
647 init_completion(done); in watchdog_enable()
648 complete(done); in watchdog_enable()
Dpadata.c446 bool done; in padata_mt_helper() local
468 done = (ps->nworks_fini == ps->nworks); in padata_mt_helper()
471 if (done) in padata_mt_helper()
/kernel/sched/
Dcompletion.c22 if (x->done != UINT_MAX) in complete_with_flags()
23 x->done++; in complete_with_flags()
74 x->done = UINT_MAX; in complete_all()
84 if (!x->done) { in do_wait_for_common()
97 } while (!x->done && timeout); in do_wait_for_common()
99 if (!x->done) in do_wait_for_common()
102 if (x->done != UINT_MAX) in do_wait_for_common()
103 x->done--; in do_wait_for_common()
315 if (!READ_ONCE(x->done)) in try_wait_for_completion()
319 if (!x->done) in try_wait_for_completion()
[all …]
Didle.c324 int done; member
331 WRITE_ONCE(it->done, 1); in idle_inject_timer_fn()
357 it.done = 0; in play_idle_precise()
363 while (!READ_ONCE(it.done)) in play_idle_precise()
Dpelt.c493 goto done; in sched_pelt_multiplier()
507 goto done; in sched_pelt_multiplier()
514 done: in sched_pelt_multiplier()
Dfair.c4833 goto done; in util_est_update()
4842 goto done; in util_est_update()
4856 goto done; in util_est_update()
4878 done: in util_est_update()
4892 bool fits, uclamp_max_fits, done = false; in util_fits_cpu() local
4894 trace_android_rvh_util_fits_cpu(util, uclamp_min, uclamp_max, cpu, &fits, &done); in util_fits_cpu()
4896 if (done) in util_fits_cpu()
5732 goto done; in throttle_cfs_rq()
5753 goto done; in throttle_cfs_rq()
5768 done: in throttle_cfs_rq()
[all …]
/kernel/power/
Dswap.c592 wait_queue_head_t done; /* crc update done */ member
612 wake_up(&d->done); in crc32_threadfn()
621 wake_up(&d->done); in crc32_threadfn()
634 wait_queue_head_t done; /* compression done */ member
656 wake_up(&d->done); in lzo_compress_threadfn()
665 wake_up(&d->done); in lzo_compress_threadfn()
728 init_waitqueue_head(&data[thr].done); in save_image_lzo()
745 init_waitqueue_head(&crc->done); in save_image_lzo()
811 wait_event(data[thr].done, in save_image_lzo()
851 wait_event(crc->done, atomic_read_acquire(&crc->stop)); in save_image_lzo()
[all …]
/kernel/trace/
Dpreemptirq_delay_test.c35 static struct completion done; variable
134 complete(&done); in preemptirq_delay_run()
152 init_completion(&done); in preemptirq_run_test()
159 wait_for_completion(&done); in preemptirq_run_test()
Dtrace_uprobe.c1223 bool done; in trace_uprobe_filter_remove() local
1228 done = filter->nr_systemwide || in trace_uprobe_filter_remove()
1233 done = filter->nr_systemwide; in trace_uprobe_filter_remove()
1237 return done; in trace_uprobe_filter_remove()
1244 bool done; in trace_uprobe_filter_add() local
1256 done = filter->nr_systemwide || in trace_uprobe_filter_add()
1261 done = filter->nr_systemwide; in trace_uprobe_filter_add()
1266 return done; in trace_uprobe_filter_add()
/kernel/bpf/
Dbpf_iter.c110 goto done; in bpf_seq_read()
119 goto done; in bpf_seq_read()
124 goto done; in bpf_seq_read()
135 goto done; in bpf_seq_read()
150 goto done; in bpf_seq_read()
180 goto done; in bpf_seq_read()
195 goto done; in bpf_seq_read()
208 goto done; in bpf_seq_read()
219 goto done; in bpf_seq_read()
228 goto done; in bpf_seq_read()
[all …]
Dinode.c174 bool done; member
221 if (map_iter(m)->done) in map_seq_next()
231 map_iter(m)->done = true; in map_seq_next()
240 if (map_iter(m)->done) in map_seq_start()
/kernel/locking/
Dtest-ww_mutex.c31 struct completion ready, go, done; member
53 complete(&mtx->done); in test_mutex_work()
70 init_completion(&mtx.done); in __test_mutex()
83 if (completion_done(&mtx.done)) { in __test_mutex()
90 ret = wait_for_completion_timeout(&mtx.done, TIMEOUT); in __test_mutex()
/kernel/debug/kdb/
Dkdb_bp.c392 int done = 0; in kdb_bc() local
448 done++; in kdb_bc()
489 return (!done) ? KDB_BPTNOTFOUND : 0; in kdb_bc()
/kernel/rcu/
Drcuscale.c459 bool started = false, done = false, alldone = false; in rcu_scale_writer() local
526 if (!done && i >= MIN_MEAS && time_after(jiffies, jdone)) { in rcu_scale_writer()
527 done = true; in rcu_scale_writer()
550 if (done && !alldone && in rcu_scale_writer()
Dtree_exp.h78 bool done; in sync_exp_reset_tree_hotplug() local
114 done = false; in sync_exp_reset_tree_hotplug()
118 done = true; in sync_exp_reset_tree_hotplug()
121 if (done) in sync_exp_reset_tree_hotplug()
/kernel/kcsan/
D.kunitconfig2 # Under kunit_tool, this can be done by using the --qemu_args
/kernel/cgroup/
Dcpuset.c929 goto done; in generate_sched_domains()
939 goto done; in generate_sched_domains()
944 goto done; in generate_sched_domains()
1017 goto done; in generate_sched_domains()
1068 done: in generate_sched_domains()
2204 goto done; in update_nodemask()
2218 goto done; in update_nodemask()
2223 goto done; in update_nodemask()
2229 goto done; in update_nodemask()
2233 goto done; in update_nodemask()
[all …]
/kernel/debug/
Ddebug_core.c1053 goto done; in dbg_notify_reboot()
1055 goto done; in dbg_notify_reboot()
1059 done: in dbg_notify_reboot()

12