Lines Matching refs:cookie
237 unsigned long cookie = (unsigned long)key; in rb_sched_core_cmp() local
239 if (cookie < p->core_cookie) in rb_sched_core_cmp()
242 if (cookie > p->core_cookie) in rb_sched_core_cmp()
280 static struct task_struct *sched_core_find(struct rq *rq, unsigned long cookie) in sched_core_find() argument
284 node = rb_find_first((void *)cookie, &rq->core_tree, rb_sched_core_cmp); in sched_core_find()
294 static struct task_struct *sched_core_next(struct task_struct *p, unsigned long cookie) in sched_core_next() argument
303 if (p->core_cookie != cookie) in sched_core_next()
6069 static inline bool cookie_equals(struct task_struct *a, unsigned long cookie) in cookie_equals() argument
6071 return is_task_rq_idle(a) || (a->core_cookie == cookie); in cookie_equals()
6107 unsigned long cookie; in pick_next_task() local
6225 cookie = rq->core->core_cookie = max->core_cookie; in pick_next_task()
6235 if (!cookie_equals(p, cookie)) { in pick_next_task()
6237 if (cookie) in pick_next_task()
6238 p = sched_core_find(rq_i, cookie); in pick_next_task()
6331 unsigned long cookie; in try_steal_cookie() local
6337 cookie = dst->core->core_cookie; in try_steal_cookie()
6338 if (!cookie) in try_steal_cookie()
6344 p = sched_core_find(src, cookie); in try_steal_cookie()
6368 p = sched_core_next(p, cookie); in try_steal_cookie()