• Home
  • Raw
  • Download

Lines Matching refs:cp

548 	struct cpuset *cp;  in update_domain_attr_tree()  local
552 cpuset_for_each_descendant_pre(cp, pos_css, root_cs) { in update_domain_attr_tree()
554 if (cpumask_empty(cp->cpus_allowed)) { in update_domain_attr_tree()
559 if (is_sched_load_balance(cp)) in update_domain_attr_tree()
560 update_domain_attr(dattr, cp); in update_domain_attr_tree()
622 struct cpuset *cp; /* scans q */ in generate_sched_domains() local
653 csa = kmalloc(nr_cpusets() * sizeof(cp), GFP_KERNEL); in generate_sched_domains()
659 cpuset_for_each_descendant_pre(cp, pos_css, &top_cpuset) { in generate_sched_domains()
660 if (cp == &top_cpuset) in generate_sched_domains()
670 if (!cpumask_empty(cp->cpus_allowed) && in generate_sched_domains()
671 !is_sched_load_balance(cp)) in generate_sched_domains()
674 if (is_sched_load_balance(cp)) in generate_sched_domains()
675 csa[csn++] = cp; in generate_sched_domains()
861 struct cpuset *cp; in update_cpumasks_hier() local
866 cpuset_for_each_descendant_pre(cp, pos_css, cs) { in update_cpumasks_hier()
867 struct cpuset *parent = parent_cs(cp); in update_cpumasks_hier()
869 cpumask_and(new_cpus, cp->cpus_allowed, parent->effective_cpus); in update_cpumasks_hier()
875 if (cgroup_on_dfl(cp->css.cgroup) && cpumask_empty(new_cpus)) in update_cpumasks_hier()
879 if (cpumask_equal(new_cpus, cp->effective_cpus)) { in update_cpumasks_hier()
884 if (!css_tryget_online(&cp->css)) in update_cpumasks_hier()
889 cpumask_copy(cp->effective_cpus, new_cpus); in update_cpumasks_hier()
892 WARN_ON(!cgroup_on_dfl(cp->css.cgroup) && in update_cpumasks_hier()
893 !cpumask_equal(cp->cpus_allowed, cp->effective_cpus)); in update_cpumasks_hier()
895 update_tasks_cpumask(cp); in update_cpumasks_hier()
901 if (!cpumask_empty(cp->cpus_allowed) && in update_cpumasks_hier()
902 is_sched_load_balance(cp)) in update_cpumasks_hier()
906 css_put(&cp->css); in update_cpumasks_hier()
1120 struct cpuset *cp; in update_nodemasks_hier() local
1124 cpuset_for_each_descendant_pre(cp, pos_css, cs) { in update_nodemasks_hier()
1125 struct cpuset *parent = parent_cs(cp); in update_nodemasks_hier()
1127 nodes_and(*new_mems, cp->mems_allowed, parent->effective_mems); in update_nodemasks_hier()
1133 if (cgroup_on_dfl(cp->css.cgroup) && nodes_empty(*new_mems)) in update_nodemasks_hier()
1137 if (nodes_equal(*new_mems, cp->effective_mems)) { in update_nodemasks_hier()
1142 if (!css_tryget_online(&cp->css)) in update_nodemasks_hier()
1147 cp->effective_mems = *new_mems; in update_nodemasks_hier()
1150 WARN_ON(!cgroup_on_dfl(cp->css.cgroup) && in update_nodemasks_hier()
1151 !nodes_equal(cp->mems_allowed, cp->effective_mems)); in update_nodemasks_hier()
1153 update_tasks_nodemask(cp); in update_nodemasks_hier()
1156 css_put(&cp->css); in update_nodemasks_hier()