Lines Matching refs:cookie
175 unsigned long cookie = (unsigned long)key; in rb_sched_core_cmp() local
177 if (cookie < p->core_cookie) in rb_sched_core_cmp()
180 if (cookie > p->core_cookie) in rb_sched_core_cmp()
210 static struct task_struct *sched_core_find(struct rq *rq, unsigned long cookie) in sched_core_find() argument
214 node = rb_find_first((void *)cookie, &rq->core_tree, rb_sched_core_cmp); in sched_core_find()
224 static struct task_struct *sched_core_next(struct task_struct *p, unsigned long cookie) in sched_core_next() argument
233 if (p->core_cookie != cookie) in sched_core_next()
5830 static inline bool cookie_equals(struct task_struct *a, unsigned long cookie) in cookie_equals() argument
5832 return is_task_rq_idle(a) || (a->core_cookie == cookie); in cookie_equals()
5855 unsigned long cookie = rq->core->core_cookie; in pick_task() local
5861 if (!cookie) { in pick_task()
5876 if (cookie_equals(class_pick, cookie)) in pick_task()
5879 cookie_pick = sched_core_find(rq, cookie); in pick_task()
6132 unsigned long cookie; in try_steal_cookie() local
6138 cookie = dst->core->core_cookie; in try_steal_cookie()
6139 if (!cookie) in try_steal_cookie()
6145 p = sched_core_find(src, cookie); in try_steal_cookie()
6169 p = sched_core_next(p, cookie); in try_steal_cookie()