Lines Matching refs:cookie
26 static void sched_core_put_cookie(unsigned long cookie) in sched_core_put_cookie() argument
28 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_put_cookie()
36 static unsigned long sched_core_get_cookie(unsigned long cookie) in sched_core_get_cookie() argument
38 struct sched_core_cookie *ptr = (void *)cookie; in sched_core_get_cookie()
43 return cookie; in sched_core_get_cookie()
57 unsigned long cookie) in sched_core_update_cookie() argument
72 SCHED_WARN_ON((p->core_cookie || cookie) && !sched_core_enabled(rq)); in sched_core_update_cookie()
79 p->core_cookie = cookie; in sched_core_update_cookie()
99 unsigned long cookie, flags; in sched_core_clone_cookie() local
102 cookie = sched_core_get_cookie(p->core_cookie); in sched_core_clone_cookie()
105 return cookie; in sched_core_clone_cookie()
119 static void __sched_core_set(struct task_struct *p, unsigned long cookie) in __sched_core_set() argument
121 cookie = sched_core_get_cookie(cookie); in __sched_core_set()
122 cookie = sched_core_update_cookie(p, cookie); in __sched_core_set()
123 sched_core_put_cookie(cookie); in __sched_core_set()
130 unsigned long cookie = 0, id = 0; in sched_core_share_pid() local
174 cookie = sched_core_clone_cookie(task); in sched_core_share_pid()
175 if (cookie) { in sched_core_share_pid()
177 ptr_to_hashval((void *)cookie, &id); in sched_core_share_pid()
183 cookie = sched_core_alloc_cookie(); in sched_core_share_pid()
184 if (!cookie) { in sched_core_share_pid()
191 cookie = sched_core_clone_cookie(current); in sched_core_share_pid()
199 cookie = sched_core_clone_cookie(task); in sched_core_share_pid()
200 __sched_core_set(current, cookie); in sched_core_share_pid()
209 __sched_core_set(task, cookie); in sched_core_share_pid()
224 __sched_core_set(p, cookie); in sched_core_share_pid()
230 sched_core_put_cookie(cookie); in sched_core_share_pid()