Lines Matching +full:wait +full:- +full:retry +full:- +full:us

1 // SPDX-License-Identifier: GPL-2.0
17 #include <asm/r4k-timer.h>
35 * we want to have the fastest, inlined, non-debug version
36 * of a critical section, to be able to prove counter time-warps:
82 * we saw a time-warp of the counter going backwards: in check_counter_warp()
86 max_warp = max(max_warp, prev - now); in check_counter_warp()
99 WARN(!(now-start), in check_counter_warp()
101 now-start, end-start); in check_counter_warp()
114 retry: in check_counter_sync_source()
115 /* Wait for the target to start. */ in check_counter_sync_source()
116 while (atomic_read(&start_count) != cpus - 1) in check_counter_sync_source()
126 while (atomic_read(&stop_count) != cpus-1) in check_counter_sync_source()
132 * retry. In case of random warps no retry is attempted. in check_counter_sync_source()
137 pr_info("Counter synchronization [CPU#%d -> CPU#%u]: passed\n", in check_counter_sync_source()
140 /* Force it to 0 if random warps brought us here */ in check_counter_sync_source()
143 pr_info("Counter synchronization [CPU#%d -> CPU#%u]:\n", in check_counter_sync_source()
151 * Reset it - just in case we boot another CPU later: in check_counter_sync_source()
165 * Retry, if there is a chance to do so. in check_counter_sync_source()
168 goto retry; in check_counter_sync_source()
186 retry: in synchronise_count_slave()
188 * Register this CPU's participation and wait for the in synchronise_count_slave()
198 * Store the maximum observed warp value for a potential retry: in synchronise_count_slave()
208 * Wait for the source CPU to print stuff: in synchronise_count_slave()
220 * failed and a retry with adjusted counter is possible. If zero the in synchronise_count_slave()
235 cur_max_warp = -gbl_max_warp; in synchronise_count_slave()
243 goto retry; in synchronise_count_slave()