Lines Matching refs:cookie
23 static void sched_core_put_cookie(unsigned long cookie) in sched_core_put_cookie() argument
25 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_put_cookie()
33 static unsigned long sched_core_get_cookie(unsigned long cookie) in sched_core_get_cookie() argument
35 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_get_cookie()
40 return cookie; in sched_core_get_cookie()
54 unsigned long cookie) in sched_core_update_cookie() argument
68 SCHED_WARN_ON((p->core_cookie || cookie) && !sched_core_enabled(rq)); in sched_core_update_cookie()
74 p->core_cookie = cookie; in sched_core_update_cookie()
79 if (cookie && task_on_rq_queued(p)) in sched_core_update_cookie()
101 unsigned long cookie, flags; in sched_core_clone_cookie() local
104 cookie = sched_core_get_cookie(p->core_cookie); in sched_core_clone_cookie()
107 return cookie; in sched_core_clone_cookie()
121 static void __sched_core_set(struct task_struct *p, unsigned long cookie) in __sched_core_set() argument
123 cookie = sched_core_get_cookie(cookie); in __sched_core_set()
124 cookie = sched_core_update_cookie(p, cookie); in __sched_core_set()
125 sched_core_put_cookie(cookie); in __sched_core_set()
132 unsigned long cookie = 0, id = 0; in sched_core_share_pid() local
176 cookie = sched_core_clone_cookie(task); in sched_core_share_pid()
177 if (cookie) { in sched_core_share_pid()
179 ptr_to_hashval((void *)cookie, &id); in sched_core_share_pid()
185 cookie = sched_core_alloc_cookie(); in sched_core_share_pid()
186 if (!cookie) { in sched_core_share_pid()
193 cookie = sched_core_clone_cookie(current); in sched_core_share_pid()
201 cookie = sched_core_clone_cookie(task); in sched_core_share_pid()
202 __sched_core_set(current, cookie); in sched_core_share_pid()
211 __sched_core_set(task, cookie); in sched_core_share_pid()
226 __sched_core_set(p, cookie); in sched_core_share_pid()
232 sched_core_put_cookie(cookie); in sched_core_share_pid()