Lines Matching refs:sync
257 struct time_bench_sync *sync = cpu->sync; in invoke_test_on_cpu_func() local
266 atomic_inc(&sync->nr_tests_running); in invoke_test_on_cpu_func()
267 wait_for_completion(&sync->start_event); in invoke_test_on_cpu_func()
281 atomic_dec(&sync->nr_tests_running); in invoke_test_on_cpu_func()
331 struct time_bench_sync *sync, in time_bench_run_concurrent() argument
342 atomic_set(&sync->nr_tests_running, 0); in time_bench_run_concurrent()
343 init_completion(&sync->start_event); in time_bench_run_concurrent()
350 c->sync = sync; /* Send sync variable along */ in time_bench_run_concurrent()
371 while (atomic_read(&sync->nr_tests_running) < running) { in time_bench_run_concurrent()
376 complete_all(&sync->start_event); in time_bench_run_concurrent()
379 while (atomic_read(&sync->nr_tests_running)) { in time_bench_run_concurrent()