Lines Matching refs:wake_q

87 #include <linux/sched/wake_q.h>
235 * The wakeup is handled using the wake_q infrastructure. wake_q wakeups may
785 struct wake_q_head *wake_q)
794 wake_q_add_safe(wake_q, sleeper);
842 * @wake_q: lockless wake-queue head.
848 * The tasks that must be woken up are added to @wake_q. The return code
853 struct wake_q_head *wake_q)
872 wake_up_sem_queue_prepare(q, error, wake_q);
885 * @wake_q: lockless wake-queue head
892 int nsops, struct wake_q_head *wake_q)
905 semop_completed |= wake_const_ops(sma, num, wake_q);
916 semop_completed |= wake_const_ops(sma, i, wake_q);
925 semop_completed |= wake_const_ops(sma, -1, wake_q);
935 * @wake_q: lockless wake-queue head.
941 * The tasks that must be woken up are added to @wake_q. The return code
947 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
984 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q);
988 wake_up_sem_queue_prepare(q, error, wake_q);
1019 * @wake_q: lockless wake-queue head
1028 int otime, struct wake_q_head *wake_q)
1032 otime |= do_smart_wakeup_zero(sma, sops, nsops, wake_q);
1036 otime |= update_queue(sma, -1, wake_q);
1044 otime |= update_queue(sma, i, wake_q);
1058 sops[i].sem_num, wake_q);
1147 DEFINE_WAKE_Q(wake_q);
1163 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1168 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1174 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1178 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1188 wake_up_q(&wake_q);
1348 DEFINE_WAKE_Q(wake_q);
1396 do_smart_update(sma, NULL, 0, 0, &wake_q);
1399 wake_up_q(&wake_q);
1411 DEFINE_WAKE_Q(wake_q);
1524 do_smart_update(sma, NULL, 0, 0, &wake_q);
1562 wake_up_q(&wake_q);
2114 DEFINE_WAKE_Q(wake_q);
2121 do_smart_update(sma, sops, nsops, 1, &wake_q);
2127 wake_up_q(&wake_q);
2332 DEFINE_WAKE_Q(wake_q);
2419 do_smart_update(sma, NULL, 0, 1, &wake_q);
2422 wake_up_q(&wake_q);