Lines Matching refs:task
250 static inline struct cpuset *task_cs(struct task_struct *task) in task_cs() argument
252 return css_cs(task_css(task, cpuset_cgrp_id)); in task_cs()
1108 struct task_struct *task; in dl_update_tasks_root_domain() local
1115 while ((task = css_task_iter_next(&it))) in dl_update_tasks_root_domain()
1116 dl_add_task_root_domain(task); in dl_update_tasks_root_domain()
1269 struct task_struct *task; in update_tasks_cpumask() local
1273 while ((task = css_task_iter_next(&it))) { in update_tasks_cpumask()
1277 if (top_cs && (task->flags & PF_KTHREAD) && in update_tasks_cpumask()
1278 kthread_is_per_cpu(task)) in update_tasks_cpumask()
1282 task_cpu_possible_mask(task)); in update_tasks_cpumask()
1283 update_cpus_allowed(cs, task, new_cpus); in update_tasks_cpumask()
2033 struct task_struct *task; in update_tasks_nodemask() local
2050 while ((task = css_task_iter_next(&it))) { in update_tasks_nodemask()
2054 cpuset_change_task_nodemask(task, &newmems); in update_tasks_nodemask()
2056 mm = get_task_mm(task); in update_tasks_nodemask()
2241 struct task_struct *task; in update_tasks_flags() local
2244 while ((task = css_task_iter_next(&it))) in update_tasks_flags()
2245 cpuset_update_task_spread_flags(cs, task); in update_tasks_flags()
2554 struct task_struct *task; in cpuset_can_attach() local
2569 cgroup_taskset_for_each(task, css, tset) { in cpuset_can_attach()
2570 ret = task_can_attach(task); in cpuset_can_attach()
2573 ret = security_task_setscheduler(task); in cpuset_can_attach()
2577 if (dl_task(task)) { in cpuset_can_attach()
2579 cs->sum_migrate_dl_bw += task->dl.dl_bw; in cpuset_can_attach()
2644 static void cpuset_attach_task(struct cpuset *cs, struct task_struct *task) in cpuset_attach_task() argument
2649 guarantee_online_cpus(task, cpus_attach); in cpuset_attach_task()
2651 cpumask_copy(cpus_attach, task_cpu_possible_mask(task)); in cpuset_attach_task()
2656 WARN_ON_ONCE(update_cpus_allowed(cs, task, cpus_attach)); in cpuset_attach_task()
2658 cpuset_change_task_nodemask(task, &cpuset_attach_nodemask_to); in cpuset_attach_task()
2659 cpuset_update_task_spread_flags(cs, task); in cpuset_attach_task()
2664 struct task_struct *task; in cpuset_attach() local
2678 cgroup_taskset_for_each(task, css, tset) in cpuset_attach()
2679 cpuset_attach_task(cs, task); in cpuset_attach()
3379 static int cpuset_can_fork(struct task_struct *task, struct css_set *cset) in cpuset_can_fork() argument
3400 ret = task_can_attach(task); in cpuset_can_fork()
3404 ret = security_task_setscheduler(task); in cpuset_can_fork()
3418 static void cpuset_cancel_fork(struct task_struct *task, struct css_set *cset) in cpuset_cancel_fork() argument
3442 static void cpuset_fork(struct task_struct *task) in cpuset_fork() argument
3448 cs = task_cs(task); in cpuset_fork()
3454 trace_android_rvh_cpuset_fork(task, &inherit_cpus); in cpuset_fork()
3456 set_cpus_allowed_ptr(task, current->cpus_ptr); in cpuset_fork()
3457 task->mems_allowed = current->mems_allowed; in cpuset_fork()
3464 cpuset_attach_task(cs, task); in cpuset_fork()
4266 void cpuset_task_status_allowed(struct seq_file *m, struct task_struct *task) in cpuset_task_status_allowed() argument
4269 nodemask_pr_args(&task->mems_allowed)); in cpuset_task_status_allowed()
4271 nodemask_pr_args(&task->mems_allowed)); in cpuset_task_status_allowed()