Lines Matching refs:new_cpus

215 	cpumask_var_t new_cpus;		/* For update_cpumasks_hier() */  member
607 pmask1 = &tmp->new_cpus; in alloc_cpumasks()
643 free_cpumask_var(tmp->new_cpus); in free_cpumasks()
1220 static void update_tasks_cpumask(struct cpuset *cs, struct cpumask *new_cpus) in update_tasks_cpumask() argument
1236 cpumask_andnot(new_cpus, possible_mask, cs->subparts_cpus); in update_tasks_cpumask()
1238 cpumask_and(new_cpus, possible_mask, cs->effective_cpus); in update_tasks_cpumask()
1240 set_cpus_allowed_ptr(task, new_cpus); in update_tasks_cpumask()
1256 static void compute_effective_cpumask(struct cpumask *new_cpus, in compute_effective_cpumask() argument
1260 cpumask_or(new_cpus, parent->effective_cpus, in compute_effective_cpumask()
1262 cpumask_and(new_cpus, new_cpus, cs->cpus_allowed); in compute_effective_cpumask()
1263 cpumask_and(new_cpus, new_cpus, cpu_active_mask); in compute_effective_cpumask()
1265 cpumask_and(new_cpus, cs->cpus_allowed, parent->effective_cpus); in compute_effective_cpumask()
1636 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
1644 if (is_in_v2_mode() && cpumask_empty(tmp->new_cpus)) { in update_cpumasks_hier()
1649 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
1668 cpumask_equal(tmp->new_cpus, cp->effective_cpus) && in update_cpumasks_hier()
1725 cpumask_or(tmp->new_cpus, tmp->new_cpus, in update_cpumasks_hier()
1727 cpumask_and(tmp->new_cpus, tmp->new_cpus, in update_cpumasks_hier()
1733 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
1751 update_tasks_cpumask(cp, tmp->new_cpus); in update_cpumasks_hier()
3574 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks_legacy() argument
3580 cpumask_copy(cs->cpus_allowed, new_cpus); in hotplug_update_tasks_legacy()
3581 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks_legacy()
3591 update_tasks_cpumask(cs, new_cpus); in hotplug_update_tasks_legacy()
3612 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks() argument
3616 if (cpumask_empty(new_cpus) && !is_partition_valid(cs)) in hotplug_update_tasks()
3617 cpumask_copy(new_cpus, parent_cs(cs)->effective_cpus); in hotplug_update_tasks()
3622 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks()
3627 update_tasks_cpumask(cs, new_cpus); in hotplug_update_tasks()
3650 static cpumask_t new_cpus; in cpuset_hotplug_update_tasks() local
3670 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3678 cpumask_andnot(&new_cpus, &new_cpus, cs->subparts_cpus); in cpuset_hotplug_update_tasks()
3690 cpumask_empty(&new_cpus) && partition_is_populated(cs, NULL)) { in cpuset_hotplug_update_tasks()
3695 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3706 (cpumask_empty(&new_cpus) && partition_is_populated(cs, NULL)))) { in cpuset_hotplug_update_tasks()
3715 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3746 cpus_updated = !cpumask_equal(&new_cpus, cs->effective_cpus); in cpuset_hotplug_update_tasks()
3755 hotplug_update_tasks(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3758 hotplug_update_tasks_legacy(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3784 static cpumask_t new_cpus; in cpuset_hotplug_workfn() local
3796 cpumask_copy(&new_cpus, cpu_active_mask); in cpuset_hotplug_workfn()
3804 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
3818 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
3826 if (cpumask_subset(&new_cpus, in cpuset_hotplug_workfn()
3831 cpumask_andnot(&new_cpus, &new_cpus, in cpuset_hotplug_workfn()
3835 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()