Lines Matching refs:tsk
530 static void guarantee_online_cpus(struct task_struct *tsk, in guarantee_online_cpus() argument
533 const struct cpumask *possible_mask = task_cpu_possible_mask(tsk); in guarantee_online_cpus()
540 cs = task_cs(tsk); in guarantee_online_cpus()
586 struct task_struct *tsk) in cpuset_update_task_spread_flags() argument
592 task_set_spread_page(tsk); in cpuset_update_task_spread_flags()
594 task_clear_spread_page(tsk); in cpuset_update_task_spread_flags()
597 task_set_spread_slab(tsk); in cpuset_update_task_spread_flags()
599 task_clear_spread_slab(tsk); in cpuset_update_task_spread_flags()
2001 static void cpuset_change_task_nodemask(struct task_struct *tsk, in cpuset_change_task_nodemask() argument
2004 task_lock(tsk); in cpuset_change_task_nodemask()
2007 write_seqcount_begin(&tsk->mems_allowed_seq); in cpuset_change_task_nodemask()
2009 nodes_or(tsk->mems_allowed, tsk->mems_allowed, *newmems); in cpuset_change_task_nodemask()
2010 mpol_rebind_task(tsk, newmems); in cpuset_change_task_nodemask()
2011 tsk->mems_allowed = *newmems; in cpuset_change_task_nodemask()
2013 write_seqcount_end(&tsk->mems_allowed_seq); in cpuset_change_task_nodemask()
2016 task_unlock(tsk); in cpuset_change_task_nodemask()
3918 void cpuset_cpus_allowed(struct task_struct *tsk, struct cpumask *pmask) in cpuset_cpus_allowed() argument
3923 guarantee_online_cpus(tsk, pmask); in cpuset_cpus_allowed()
3941 bool cpuset_cpus_allowed_fallback(struct task_struct *tsk) in cpuset_cpus_allowed_fallback() argument
3943 const struct cpumask *possible_mask = task_cpu_possible_mask(tsk); in cpuset_cpus_allowed_fallback()
3948 cs_mask = task_cs(tsk)->cpus_allowed; in cpuset_cpus_allowed_fallback()
3950 do_set_cpus_allowed(tsk, cs_mask); in cpuset_cpus_allowed_fallback()
3990 nodemask_t cpuset_mems_allowed(struct task_struct *tsk) in cpuset_mems_allowed() argument
3997 guarantee_online_mems(task_cs(tsk), &mask); in cpuset_mems_allowed()
4236 struct pid *pid, struct task_struct *tsk) in proc_cpuset_show() argument
4247 css = task_get_css(tsk, cpuset_cgrp_id); in proc_cpuset_show()