Lines Matching refs:cpus_allowed

139 	cpumask_var_t cpus_allowed;  member
579 return cpumask_subset(p->cpus_allowed, q->cpus_allowed) && in is_cpuset_subset()
598 pmask1 = &cs->cpus_allowed; in alloc_cpumasks()
633 free_cpumask_var(cs->cpus_allowed); in free_cpumasks()
661 cpumask_copy(trial->cpus_allowed, cs->cpus_allowed); in alloc_trial_cpuset()
750 if (!cpumask_empty(cur->cpus_allowed) && in validate_change()
751 cpumask_empty(trial->cpus_allowed)) in validate_change()
764 !cpuset_cpumask_can_shrink(cur->cpus_allowed, in validate_change()
765 trial->cpus_allowed)) in validate_change()
776 cpumask_intersects(trial->cpus_allowed, c->cpus_allowed)) in validate_change()
817 if (cpumask_empty(cp->cpus_allowed)) { in update_domain_attr_tree()
946 if (!cpumask_empty(cp->cpus_allowed) && in generate_sched_domains()
948 cpumask_intersects(cp->cpus_allowed, in generate_sched_domains()
953 cpumask_subset(cp->cpus_allowed, top_cpuset.effective_cpus)) in generate_sched_domains()
1245 cpumask_and(new_cpus, new_cpus, cs->cpus_allowed); in compute_effective_cpumask()
1248 cpumask_and(new_cpus, cs->cpus_allowed, parent->effective_cpus); in compute_effective_cpumask()
1324 (!newmask && cpumask_empty(cs->cpus_allowed))) in update_parent_subparts_cpumask()
1338 if (!cpumask_intersects(cs->cpus_allowed, parent->cpus_allowed)) in update_parent_subparts_cpumask()
1345 if (!cpumask_intersects(cs->cpus_allowed, parent->effective_cpus) && in update_parent_subparts_cpumask()
1349 cpumask_copy(tmp->addmask, cs->cpus_allowed); in update_parent_subparts_cpumask()
1357 cpumask_and(tmp->delmask, cs->cpus_allowed, in update_parent_subparts_cpumask()
1367 deleting = cpumask_and(tmp->delmask, cs->cpus_allowed, in update_parent_subparts_cpumask()
1383 cpumask_andnot(tmp->delmask, cs->cpus_allowed, newmask); in update_parent_subparts_cpumask()
1387 cpumask_and(tmp->addmask, newmask, parent->cpus_allowed); in update_parent_subparts_cpumask()
1400 deleting = cpumask_and(tmp->delmask, cs->cpus_allowed, in update_parent_subparts_cpumask()
1422 cpumask_and(tmp->addmask, cs->cpus_allowed, in update_parent_subparts_cpumask()
1423 parent->cpus_allowed); in update_parent_subparts_cpumask()
1437 deleting = cpumask_and(tmp->delmask, cs->cpus_allowed, in update_parent_subparts_cpumask()
1560 cpumask_equal(cp->cpus_allowed, cp->subparts_cpus)) in update_cpumasks_hier()
1658 !cpumask_equal(cp->cpus_allowed, cp->effective_cpus)); in update_cpumasks_hier()
1668 if (!cpumask_empty(cp->cpus_allowed) && in update_cpumasks_hier()
1746 cpumask_clear(trialcs->cpus_allowed); in update_cpumask()
1748 retval = cpulist_parse(buf, trialcs->cpus_allowed); in update_cpumask()
1752 if (!cpumask_subset(trialcs->cpus_allowed, in update_cpumask()
1753 top_cpuset.cpus_allowed)) in update_cpumask()
1758 if (cpumask_equal(cs->cpus_allowed, trialcs->cpus_allowed)) in update_cpumask()
1768 tmp.new_cpus = trialcs->cpus_allowed; in update_cpumask()
1789 cpumask_intersects(trialcs->cpus_allowed, cp->cpus_allowed)) { in update_cpumask()
1806 trialcs->cpus_allowed, &tmp); in update_cpumask()
1812 cpumask_copy(cs->cpus_allowed, trialcs->cpus_allowed); in update_cpumask()
1827 cs->cpus_allowed); in update_cpumask()
2133 if (!cpumask_empty(cs->cpus_allowed) && in update_relax_domain_level()
2200 if (!cpumask_empty(trialcs->cpus_allowed) && balance_flag_changed) in update_flag()
2246 if (cpumask_empty(cs->cpus_allowed)) { in update_prstate()
2456 (cpumask_empty(cs->cpus_allowed) || nodes_empty(cs->mems_allowed))) in cpuset_can_attach()
2754 seq_printf(sf, "%*pbl\n", cpumask_pr_args(cs->cpus_allowed)); in cpuset_common_seq_show()
3142 cpumask_copy(cs->cpus_allowed, parent->cpus_allowed); in cpuset_css_online()
3143 cpumask_copy(cs->effective_cpus, parent->cpus_allowed); in cpuset_css_online()
3203 cpumask_copy(top_cpuset.cpus_allowed, cpu_possible_mask); in cpuset_bind()
3206 cpumask_copy(top_cpuset.cpus_allowed, in cpuset_bind()
3256 BUG_ON(!alloc_cpumask_var(&top_cpuset.cpus_allowed, GFP_KERNEL)); in cpuset_init()
3260 cpumask_setall(top_cpuset.cpus_allowed); in cpuset_init()
3290 while (cpumask_empty(parent->cpus_allowed) || in remove_tasks_in_empty_cpuset()
3309 cpumask_copy(cs->cpus_allowed, new_cpus); in hotplug_update_tasks_legacy()
3319 if (cpus_updated && !cpumask_empty(cs->cpus_allowed)) in hotplug_update_tasks_legacy()
3324 is_empty = cpumask_empty(cs->cpus_allowed) || in hotplug_update_tasks_legacy()
3544 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
3702 cs_mask = task_cs(tsk)->cpus_allowed; in cpuset_cpus_allowed_fallback()