• Home
  • Raw
  • Download

Lines Matching refs:parent

205 	return css_cs(cs->css.parent);  in parent_cs()
1056 struct cpuset *cs, struct cpuset *parent) in compute_effective_cpumask() argument
1058 if (parent->nr_subparts_cpus) { in compute_effective_cpumask()
1059 cpumask_or(new_cpus, parent->effective_cpus, in compute_effective_cpumask()
1060 parent->subparts_cpus); in compute_effective_cpumask()
1064 cpumask_and(new_cpus, cs->cpus_allowed, parent->effective_cpus); in compute_effective_cpumask()
1123 struct cpuset *parent = parent_cs(cpuset); in update_parent_subparts_cpumask() local
1135 if (!is_partition_root(parent) || in update_parent_subparts_cpumask()
1153 (!cpumask_subset(cpuset->cpus_allowed, parent->effective_cpus) || in update_parent_subparts_cpumask()
1154 cpumask_equal(cpuset->cpus_allowed, parent->effective_cpus))) in update_parent_subparts_cpumask()
1166 parent->subparts_cpus); in update_parent_subparts_cpumask()
1177 parent->subparts_cpus); in update_parent_subparts_cpumask()
1179 cpumask_and(tmp->addmask, newmask, parent->effective_cpus); in update_parent_subparts_cpumask()
1181 parent->subparts_cpus); in update_parent_subparts_cpumask()
1186 cpumask_equal(parent->effective_cpus, tmp->addmask)) { in update_parent_subparts_cpumask()
1197 cpumask_copy(tmp->addmask, parent->effective_cpus); in update_parent_subparts_cpumask()
1210 parent->effective_cpus); in update_parent_subparts_cpumask()
1212 parent->effective_cpus); in update_parent_subparts_cpumask()
1247 parent->subparts_cpus); in update_parent_subparts_cpumask()
1260 cpumask_or(parent->subparts_cpus, in update_parent_subparts_cpumask()
1261 parent->subparts_cpus, tmp->addmask); in update_parent_subparts_cpumask()
1262 cpumask_andnot(parent->effective_cpus, in update_parent_subparts_cpumask()
1263 parent->effective_cpus, tmp->addmask); in update_parent_subparts_cpumask()
1266 cpumask_andnot(parent->subparts_cpus, in update_parent_subparts_cpumask()
1267 parent->subparts_cpus, tmp->delmask); in update_parent_subparts_cpumask()
1272 cpumask_or(parent->effective_cpus, in update_parent_subparts_cpumask()
1273 parent->effective_cpus, tmp->delmask); in update_parent_subparts_cpumask()
1276 parent->nr_subparts_cpus = cpumask_weight(parent->subparts_cpus); in update_parent_subparts_cpumask()
1302 struct cpuset *parent = parent_cs(cp); in update_cpumasks_hier() local
1304 compute_effective_cpumask(tmp->new_cpus, cp, parent); in update_cpumasks_hier()
1311 cpumask_copy(tmp->new_cpus, parent->effective_cpus); in update_cpumasks_hier()
1314 parent->child_ecpus_count++; in update_cpumasks_hier()
1318 WARN_ON_ONCE(!parent->child_ecpus_count); in update_cpumasks_hier()
1319 parent->child_ecpus_count--; in update_cpumasks_hier()
1339 switch (parent->partition_root_state) { in update_cpumasks_hier()
1362 update_tasks_cpumask(parent); in update_cpumasks_hier()
1447 static void update_sibling_cpumasks(struct cpuset *parent, struct cpuset *cs, in update_sibling_cpumasks() argument
1459 cpuset_for_each_child(sibling, pos_css, parent) { in update_sibling_cpumasks()
1547 struct cpuset *parent = parent_cs(cs); in update_cpumask() local
1553 if (parent->child_ecpus_count) in update_cpumask()
1554 update_sibling_cpumasks(parent, cs, &tmp); in update_cpumask()
1715 struct cpuset *parent = parent_cs(cp); in update_nodemasks_hier() local
1717 nodes_and(*new_mems, cp->mems_allowed, parent->effective_mems); in update_nodemasks_hier()
1724 *new_mems = parent->effective_mems; in update_nodemasks_hier()
1923 struct cpuset *parent = parent_cs(cs); in update_prstate() local
1989 if (parent != &top_cpuset) in update_prstate()
1990 update_tasks_cpumask(parent); in update_prstate()
1992 if (parent->child_ecpus_count) in update_prstate()
1993 update_sibling_cpumasks(parent, cs, &tmp); in update_prstate()
2727 struct cpuset *parent = parent_cs(cs); in cpuset_css_online() local
2731 if (!parent) in cpuset_css_online()
2738 if (is_spread_page(parent)) in cpuset_css_online()
2740 if (is_spread_slab(parent)) in cpuset_css_online()
2747 cpumask_copy(cs->effective_cpus, parent->effective_cpus); in cpuset_css_online()
2748 cs->effective_mems = parent->effective_mems; in cpuset_css_online()
2750 parent->child_ecpus_count++; in cpuset_css_online()
2771 cpuset_for_each_child(tmp_cs, pos_css, parent) { in cpuset_css_online()
2780 cs->mems_allowed = parent->mems_allowed; in cpuset_css_online()
2781 cs->effective_mems = parent->mems_allowed; in cpuset_css_online()
2782 cpumask_copy(cs->cpus_allowed, parent->cpus_allowed); in cpuset_css_online()
2783 cpumask_copy(cs->effective_cpus, parent->cpus_allowed); in cpuset_css_online()
2817 struct cpuset *parent = parent_cs(cs); in cpuset_css_offline() local
2820 parent->child_ecpus_count--; in cpuset_css_offline()
2923 struct cpuset *parent; in remove_tasks_in_empty_cpuset() local
2929 parent = parent_cs(cs); in remove_tasks_in_empty_cpuset()
2930 while (cpumask_empty(parent->cpus_allowed) || in remove_tasks_in_empty_cpuset()
2931 nodes_empty(parent->mems_allowed)) in remove_tasks_in_empty_cpuset()
2932 parent = parent_cs(parent); in remove_tasks_in_empty_cpuset()
2934 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
3023 struct cpuset *parent; in cpuset_hotplug_update_tasks() local
3038 parent = parent_cs(cs); in cpuset_hotplug_update_tasks()
3039 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3040 nodes_and(new_mems, cs->mems_allowed, parent->effective_mems); in cpuset_hotplug_update_tasks()
3058 (parent->partition_root_state == PRS_ERROR))) { in cpuset_hotplug_update_tasks()
3062 compute_effective_cpumask(&new_cpus, cs, parent); in cpuset_hotplug_update_tasks()
3071 if ((parent->partition_root_state == PRS_ERROR) || in cpuset_hotplug_update_tasks()
3085 if (is_partition_root(parent) && in cpuset_hotplug_update_tasks()
3087 !cpumask_intersects(&new_cpus, parent->subparts_cpus)) && in cpuset_hotplug_update_tasks()