Lines Matching refs:new_cpus
214 cpumask_var_t new_cpus; /* For update_cpumasks_hier() */ member
606 pmask1 = &tmp->new_cpus; in alloc_cpumasks()
642 free_cpumask_var(tmp->new_cpus); in free_cpumasks()
1219 static void update_tasks_cpumask(struct cpuset *cs, struct cpumask *new_cpus) in update_tasks_cpumask() argument
1235 cpumask_andnot(new_cpus, possible_mask, cs->subparts_cpus); in update_tasks_cpumask()
1237 cpumask_and(new_cpus, possible_mask, cs->effective_cpus); in update_tasks_cpumask()
1239 set_cpus_allowed_ptr(task, new_cpus); in update_tasks_cpumask()
1255 static void compute_effective_cpumask(struct cpumask *new_cpus, in compute_effective_cpumask() argument
1259 cpumask_or(new_cpus, parent->effective_cpus, in compute_effective_cpumask()
1261 cpumask_and(new_cpus, new_cpus, cs->cpus_allowed); in compute_effective_cpumask()
1262 cpumask_and(new_cpus, new_cpus, cpu_active_mask); in compute_effective_cpumask()
1264 cpumask_and(new_cpus, cs->cpus_allowed, parent->effective_cpus); in compute_effective_cpumask()
1625 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
1633 if (is_in_v2_mode() && cpumask_empty(tmp->new_cpus)) { in update_cpumasks_hier()
1638 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
1657 cpumask_equal(tmp->new_cpus, cp->effective_cpus) && in update_cpumasks_hier()
1714 cpumask_or(tmp->new_cpus, tmp->new_cpus, in update_cpumasks_hier()
1716 cpumask_and(tmp->new_cpus, tmp->new_cpus, in update_cpumasks_hier()
1722 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
1740 update_tasks_cpumask(cp, tmp->new_cpus); in update_cpumasks_hier()
3563 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks_legacy() argument
3569 cpumask_copy(cs->cpus_allowed, new_cpus); in hotplug_update_tasks_legacy()
3570 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks_legacy()
3580 update_tasks_cpumask(cs, new_cpus); in hotplug_update_tasks_legacy()
3601 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks() argument
3605 if (cpumask_empty(new_cpus) && !is_partition_valid(cs)) in hotplug_update_tasks()
3606 cpumask_copy(new_cpus, parent_cs(cs)->effective_cpus); in hotplug_update_tasks()
3611 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks()
3616 update_tasks_cpumask(cs, new_cpus); in hotplug_update_tasks()
3639 static cpumask_t new_cpus; in cpuset_hotplug_update_tasks() local
3659 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3667 cpumask_andnot(&new_cpus, &new_cpus, cs->subparts_cpus); in cpuset_hotplug_update_tasks()
3679 cpumask_empty(&new_cpus) && partition_is_populated(cs, NULL)) { in cpuset_hotplug_update_tasks()
3684 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3695 (cpumask_empty(&new_cpus) && partition_is_populated(cs, NULL)))) { in cpuset_hotplug_update_tasks()
3704 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3735 cpus_updated = !cpumask_equal(&new_cpus, cs->effective_cpus); in cpuset_hotplug_update_tasks()
3744 hotplug_update_tasks(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3747 hotplug_update_tasks_legacy(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3773 static cpumask_t new_cpus; in cpuset_hotplug_workfn() local
3785 cpumask_copy(&new_cpus, cpu_active_mask); in cpuset_hotplug_workfn()
3793 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
3807 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
3815 if (cpumask_subset(&new_cpus, in cpuset_hotplug_workfn()
3820 cpumask_andnot(&new_cpus, &new_cpus, in cpuset_hotplug_workfn()
3824 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()