Lines Matching refs:new_cpus
866 static void update_cpumasks_hier(struct cpuset *cs, struct cpumask *new_cpus) in update_cpumasks_hier() argument
876 cpumask_and(new_cpus, cp->cpus_allowed, parent->effective_cpus); in update_cpumasks_hier()
882 if (cgroup_on_dfl(cp->css.cgroup) && cpumask_empty(new_cpus)) in update_cpumasks_hier()
883 cpumask_copy(new_cpus, parent->effective_cpus); in update_cpumasks_hier()
886 if (cpumask_equal(new_cpus, cp->effective_cpus)) { in update_cpumasks_hier()
896 cpumask_copy(cp->effective_cpus, new_cpus); in update_cpumasks_hier()
2121 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks_legacy() argument
2127 cpumask_copy(cs->cpus_allowed, new_cpus); in hotplug_update_tasks_legacy()
2128 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks_legacy()
2160 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks() argument
2163 if (cpumask_empty(new_cpus)) in hotplug_update_tasks()
2164 cpumask_copy(new_cpus, parent_cs(cs)->effective_cpus); in hotplug_update_tasks()
2169 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks()
2189 static cpumask_t new_cpus; in cpuset_hotplug_update_tasks() local
2207 cpumask_and(&new_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); in cpuset_hotplug_update_tasks()
2210 cpus_updated = !cpumask_equal(&new_cpus, cs->effective_cpus); in cpuset_hotplug_update_tasks()
2214 hotplug_update_tasks(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
2217 hotplug_update_tasks_legacy(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
2241 static cpumask_t new_cpus; in cpuset_hotplug_workfn() local
2249 cpumask_copy(&new_cpus, cpu_active_mask); in cpuset_hotplug_workfn()
2252 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
2259 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
2260 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()