Home
last modified time | relevance | path

Searched refs:task_count (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/futex/functional/
H A Dfutex_requeue_pi.c150 int task_count = 0; in broadcast_wakerfn() local
173 task_count += args->ret; in broadcast_wakerfn()
174 if (task_count < THREAD_MAX - waiters_woken.val) in broadcast_wakerfn()
178 0, MAX_WAKE_ITERS, task_count, THREAD_MAX); in broadcast_wakerfn()
188 args->ret = task_count; in broadcast_wakerfn()
199 int task_count = 0; in signal_wakerfn() local
208 while (task_count < THREAD_MAX && waiters_woken.val < THREAD_MAX) { in signal_wakerfn()
210 task_count, waiters_woken.val); in signal_wakerfn()
237 task_count += args->ret; in signal_wakerfn()
252 args->ret = task_count; in signal_wakerfn()
/linux/kernel/futex/
H A Drequeue.c372 int task_count = 0, ret; in futex_requeue() local
536 task_count++; in futex_requeue()
575 if (task_count - nr_wake >= nr_requeue) in futex_requeue()
597 if (++task_count <= nr_wake) in futex_requeue()
645 task_count++; in futex_requeue()
650 task_count++; in futex_requeue()
680 return ret ? ret : task_count; in futex_requeue()