Lines Matching refs:top_cpuset
334 static struct cpuset top_cpuset = { variable
744 if (cur == &top_cpuset) in validate_change()
905 bool root_load_balance = is_sched_load_balance(&top_cpuset); in generate_sched_domains()
912 if (root_load_balance && !top_cpuset.nr_subparts_cpus) { in generate_sched_domains()
921 update_domain_attr_tree(dattr, &top_cpuset); in generate_sched_domains()
923 cpumask_and(doms[0], top_cpuset.effective_cpus, in generate_sched_domains()
936 csa[csn++] = &top_cpuset; in generate_sched_domains()
937 cpuset_for_each_descendant_pre(cp, pos_css, &top_cpuset) { in generate_sched_domains()
938 if (cp == &top_cpuset) in generate_sched_domains()
958 cpumask_subset(cp->cpus_allowed, top_cpuset.effective_cpus)) in generate_sched_domains()
1103 cpuset_for_each_descendant_pre(cs, pos_css, &top_cpuset) { in dl_rebuild_rd_accounting()
1163 if (!top_cpuset.nr_subparts_cpus && in rebuild_sched_domains_locked()
1164 !cpumask_equal(top_cpuset.effective_cpus, cpu_active_mask)) in rebuild_sched_domains_locked()
1172 if (top_cpuset.nr_subparts_cpus) { in rebuild_sched_domains_locked()
1174 cpuset_for_each_descendant_pre(cs, pos_css, &top_cpuset) { in rebuild_sched_domains_locked()
1224 bool top_cs = cs == &top_cpuset; in update_tasks_cpumask()
1844 if (cs == &top_cpuset) in update_cpumask()
1861 top_cpuset.cpus_allowed)) in update_cpumask()
2174 if (cs == &top_cpuset) { in update_nodemask()
2193 top_cpuset.mems_allowed)) { in update_nodemask()
2649 if (cs != &top_cpuset) in cpuset_attach_task()
3239 return &top_cpuset.css; in cpuset_css_alloc()
3390 cpumask_copy(top_cpuset.cpus_allowed, cpu_possible_mask); in cpuset_bind()
3391 top_cpuset.mems_allowed = node_possible_map; in cpuset_bind()
3393 cpumask_copy(top_cpuset.cpus_allowed, in cpuset_bind()
3394 top_cpuset.effective_cpus); in cpuset_bind()
3395 top_cpuset.mems_allowed = top_cpuset.effective_mems; in cpuset_bind()
3480 if (cs == &top_cpuset) in cpuset_fork()
3527 BUG_ON(!alloc_cpumask_var(&top_cpuset.cpus_allowed, GFP_KERNEL)); in cpuset_init()
3528 BUG_ON(!alloc_cpumask_var(&top_cpuset.effective_cpus, GFP_KERNEL)); in cpuset_init()
3529 BUG_ON(!zalloc_cpumask_var(&top_cpuset.subparts_cpus, GFP_KERNEL)); in cpuset_init()
3531 cpumask_setall(top_cpuset.cpus_allowed); in cpuset_init()
3532 nodes_setall(top_cpuset.mems_allowed); in cpuset_init()
3533 cpumask_setall(top_cpuset.effective_cpus); in cpuset_init()
3534 nodes_setall(top_cpuset.effective_mems); in cpuset_init()
3536 fmeter_init(&top_cpuset.fmeter); in cpuset_init()
3537 set_bit(CS_SCHED_LOAD_BALANCE, &top_cpuset.flags); in cpuset_init()
3538 top_cpuset.relax_domain_level = -1; in cpuset_init()
3804 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
3805 mems_updated = !nodes_equal(top_cpuset.effective_mems, new_mems); in cpuset_hotplug_workfn()
3811 if (!cpus_updated && top_cpuset.nr_subparts_cpus) in cpuset_hotplug_workfn()
3818 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
3825 if (top_cpuset.nr_subparts_cpus) { in cpuset_hotplug_workfn()
3827 top_cpuset.subparts_cpus)) { in cpuset_hotplug_workfn()
3828 top_cpuset.nr_subparts_cpus = 0; in cpuset_hotplug_workfn()
3829 cpumask_clear(top_cpuset.subparts_cpus); in cpuset_hotplug_workfn()
3832 top_cpuset.subparts_cpus); in cpuset_hotplug_workfn()
3835 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
3844 top_cpuset.mems_allowed = new_mems; in cpuset_hotplug_workfn()
3845 top_cpuset.effective_mems = new_mems; in cpuset_hotplug_workfn()
3847 update_tasks_nodemask(&top_cpuset); in cpuset_hotplug_workfn()
3858 cpuset_for_each_descendant_pre(cs, pos_css, &top_cpuset) { in cpuset_hotplug_workfn()
3859 if (cs == &top_cpuset || !css_tryget_online(&cs->css)) in cpuset_hotplug_workfn()
3919 top_cpuset.old_mems_allowed = top_cpuset.mems_allowed; in cpuset_init_smp()
3921 cpumask_copy(top_cpuset.effective_cpus, cpu_active_mask); in cpuset_init_smp()
3922 top_cpuset.effective_mems = node_states[N_MEMORY]; in cpuset_init_smp()
3950 if (cs != &top_cpuset) in cpuset_cpus_allowed()
3957 if ((cs == &top_cpuset) || cpumask_empty(pmask)) { in cpuset_cpus_allowed()
3964 cpumask_andnot(pmask, possible_mask, top_cpuset.subparts_cpus); in cpuset_cpus_allowed()