Lines Matching refs:new_cpus

145 	cpumask_var_t new_cpus;		/* For update_cpumasks_hier() */  member
417 pmask1 = &tmp->new_cpus; in alloc_cpumasks()
461 free_cpumask_var(tmp->new_cpus); in free_cpumasks()
1107 void cpuset_update_tasks_cpumask(struct cpuset *cs, struct cpumask *new_cpus) in cpuset_update_tasks_cpumask() argument
1125 cpumask_andnot(new_cpus, possible_mask, subpartitions_cpus); in cpuset_update_tasks_cpumask()
1127 cpumask_and(new_cpus, possible_mask, cs->effective_cpus); in cpuset_update_tasks_cpumask()
1129 set_cpus_allowed_ptr(task, new_cpus); in cpuset_update_tasks_cpumask()
1142 static void compute_effective_cpumask(struct cpumask *new_cpus, in compute_effective_cpumask() argument
1145 cpumask_and(new_cpus, cs->cpus_allowed, parent->effective_cpus); in compute_effective_cpumask()
1448 compute_effective_exclusive_cpumask(cs, tmp->new_cpus, NULL); in remote_partition_enable()
1449 if (cpumask_empty(tmp->new_cpus) || in remote_partition_enable()
1450 cpumask_intersects(tmp->new_cpus, subpartitions_cpus) || in remote_partition_enable()
1451 cpumask_subset(top_cpuset.effective_cpus, tmp->new_cpus)) in remote_partition_enable()
1455 isolcpus_updated = partition_xcpus_add(new_prs, NULL, tmp->new_cpus); in remote_partition_enable()
1457 cpumask_copy(cs->effective_xcpus, tmp->new_cpus); in remote_partition_enable()
1466 cpuset_update_tasks_cpumask(&top_cpuset, tmp->new_cpus); in remote_partition_enable()
1506 cpuset_update_tasks_cpumask(&top_cpuset, tmp->new_cpus); in remote_partition_disable()
1575 cpuset_update_tasks_cpumask(&top_cpuset, tmp->new_cpus); in remote_cpus_update()
1592 static bool prstate_housekeeping_conflict(int prstate, struct cpumask *new_cpus) in prstate_housekeeping_conflict() argument
1597 if ((prstate != PRS_ISOLATED) && !cpumask_subset(new_cpus, boot_hk_cpus)) in prstate_housekeeping_conflict()
1701 xcpus = tmp->new_cpus; in update_parent_effective_cpumask()
2043 compute_effective_exclusive_cpumask(cp, tmp->new_cpus, NULL); in update_cpumasks_hier()
2044 if (cpumask_equal(cp->effective_xcpus, tmp->new_cpus)) { in update_cpumasks_hier()
2049 remote_cpus_update(cp, NULL, tmp->new_cpus, tmp); in update_cpumasks_hier()
2058 compute_partition_effective_cpumask(cp, tmp->new_cpus); in update_cpumasks_hier()
2060 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
2070 if (is_partition_valid(cp) && cpumask_empty(tmp->new_cpus)) { in update_cpumasks_hier()
2081 if (is_in_v2_mode() && !remote && cpumask_empty(tmp->new_cpus)) in update_cpumasks_hier()
2082 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
2092 cpumask_equal(tmp->new_cpus, cp->effective_cpus) && in update_cpumasks_hier()
2142 cpumask_copy(cp->effective_cpus, tmp->new_cpus); in update_cpumasks_hier()
2229 compute_effective_cpumask(tmp->new_cpus, sibling, in update_sibling_cpumasks()
2231 if (cpumask_equal(tmp->new_cpus, sibling->effective_cpus)) in update_sibling_cpumasks()
3745 struct cpumask *new_cpus, nodemask_t *new_mems, in hotplug_update_tasks() argument
3749 if (cpumask_empty(new_cpus) && !is_partition_valid(cs)) in hotplug_update_tasks()
3750 cpumask_copy(new_cpus, parent_cs(cs)->effective_cpus); in hotplug_update_tasks()
3755 cpumask_copy(cs->effective_cpus, new_cpus); in hotplug_update_tasks()
3760 cpuset_update_tasks_cpumask(cs, new_cpus); in hotplug_update_tasks()
3781 static cpumask_t new_cpus; in cpuset_hotplug_update_tasks() local
3803 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3815 compute_partition_effective_cpumask(cs, &new_cpus); in cpuset_hotplug_update_tasks()
3817 if (remote && cpumask_empty(&new_cpus) && in cpuset_hotplug_update_tasks()
3821 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3833 tasks_nocpu_error(parent, cs, &new_cpus))) in cpuset_hotplug_update_tasks()
3845 compute_partition_effective_cpumask(cs, &new_cpus); in cpuset_hotplug_update_tasks()
3851 cpus_updated = !cpumask_equal(&new_cpus, cs->effective_cpus); in cpuset_hotplug_update_tasks()
3860 hotplug_update_tasks(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3863 cpuset1_hotplug_update_tasks(cs, &new_cpus, &new_mems, in cpuset_hotplug_update_tasks()
3890 static cpumask_t new_cpus; in cpuset_handle_hotplug() local
3903 cpumask_copy(&new_cpus, cpu_active_mask); in cpuset_handle_hotplug()
3911 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus) || in cpuset_handle_hotplug()
3920 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_handle_hotplug()
3928 if (cpumask_subset(&new_cpus, subpartitions_cpus)) { in cpuset_handle_hotplug()
3932 cpumask_andnot(&new_cpus, &new_cpus, in cpuset_handle_hotplug()
3936 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_handle_hotplug()