Lines Matching +full:timeout +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0
23 struct timespec timeout, end; in run_test() local
29 clock_gettime(clockid, &timeout); in run_test()
30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test()
31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test()
32 timeout.tv_sec++; in run_test()
33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test()
37 &timeout, 0, FUTEX_BITSET_MATCH_ANY) >= 0) { in run_test()
50 if (end.tv_sec < timeout.tv_sec || in run_test()
51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout.tv_nsec)) { in run_test()
52 ksft_test_result_fail("futex slept less than 100ms\n"); in run_test()