Lines Matching refs:new_cpus
229 cpumask_var_t new_cpus; /* For update_cpumasks_hier() */ member
602 pmask1 = &tmp->new_cpus; in alloc_cpumasks()
638 free_cpumask_var(tmp->new_cpus); in free_cpumasks()
1239 static void compute_effective_cpumask(struct cpumask *new_cpus, in compute_effective_cpumask() argument
1243 cpumask_or(new_cpus, parent->effective_cpus, in compute_effective_cpumask()
1245 cpumask_and(new_cpus, new_cpus, cs->cpus_allowed); in compute_effective_cpumask()
1246 cpumask_and(new_cpus, new_cpus, cpu_active_mask); in compute_effective_cpumask()
1248 cpumask_and(new_cpus, cs->cpus_allowed, parent->effective_cpus); in compute_effective_cpumask()
1550 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
1558 if (is_in_v2_mode() && cpumask_empty(tmp->new_cpus)) { in update_cpumasks_hier()
1563 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
1579 cpumask_equal(tmp->new_cpus, cp->effective_cpus)) { in update_cpumasks_hier()
1634 cpumask_or(tmp->new_cpus, tmp->new_cpus, in update_cpumasks_hier()
1636 cpumask_and(tmp->new_cpus, tmp->new_cpus, in update_cpumasks_hier()
1642 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
1768 tmp.new_cpus = trialcs->cpus_allowed; in update_cpumask()
3303 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks_legacy() argument
3309 cpumask_copy(cs->cpus_allowed, new_cpus); in hotplug_update_tasks_legacy()
3310 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks_legacy()
3342 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks() argument
3346 if (cpumask_empty(new_cpus) && !is_partition_valid(cs)) in hotplug_update_tasks()
3347 cpumask_copy(new_cpus, parent_cs(cs)->effective_cpus); in hotplug_update_tasks()
3352 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks()
3380 static cpumask_t new_cpus; in cpuset_hotplug_update_tasks() local
3400 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3408 cpumask_andnot(&new_cpus, &new_cpus, cs->subparts_cpus); in cpuset_hotplug_update_tasks()
3420 cpumask_empty(&new_cpus) && partition_is_populated(cs, NULL)) { in cpuset_hotplug_update_tasks()
3425 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3436 (cpumask_empty(&new_cpus) && partition_is_populated(cs, NULL)))) { in cpuset_hotplug_update_tasks()
3445 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3476 cpus_updated = !cpumask_equal(&new_cpus, cs->effective_cpus); in cpuset_hotplug_update_tasks()
3483 hotplug_update_tasks(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3486 hotplug_update_tasks_legacy(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3510 static cpumask_t new_cpus; in cpuset_hotplug_workfn() local
3522 cpumask_copy(&new_cpus, cpu_active_mask); in cpuset_hotplug_workfn()
3530 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
3544 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
3552 if (cpumask_subset(&new_cpus, in cpuset_hotplug_workfn()
3557 cpumask_andnot(&new_cpus, &new_cpus, in cpuset_hotplug_workfn()
3561 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()