Lines Matching refs:top_cpuset
217 static struct cpuset top_cpuset = { variable
469 if (cur == &top_cpuset) in validate_change()
640 if (is_sched_load_balance(&top_cpuset)) { in generate_sched_domains()
649 update_domain_attr_tree(dattr, &top_cpuset); in generate_sched_domains()
651 cpumask_and(doms[0], top_cpuset.effective_cpus, in generate_sched_domains()
663 cpuset_for_each_descendant_pre(cp, pos_css, &top_cpuset) { in generate_sched_domains()
664 if (cp == &top_cpuset) in generate_sched_domains()
811 if (!cpumask_equal(top_cpuset.effective_cpus, cpu_active_mask)) in rebuild_sched_domains_locked()
933 if (cs == &top_cpuset) in update_cpumask()
950 top_cpuset.cpus_allowed)) in update_cpumask()
1188 if (cs == &top_cpuset) { in update_nodemask()
1207 top_cpuset.mems_allowed)) { in update_nodemask()
1496 if (cs == &top_cpuset) in cpuset_attach()
1907 return &top_cpuset.css; in cpuset_css_alloc()
2033 cpumask_copy(top_cpuset.cpus_allowed, cpu_possible_mask); in cpuset_bind()
2034 top_cpuset.mems_allowed = node_possible_map; in cpuset_bind()
2036 cpumask_copy(top_cpuset.cpus_allowed, in cpuset_bind()
2037 top_cpuset.effective_cpus); in cpuset_bind()
2038 top_cpuset.mems_allowed = top_cpuset.effective_mems; in cpuset_bind()
2068 if (!alloc_cpumask_var(&top_cpuset.cpus_allowed, GFP_KERNEL)) in cpuset_init()
2070 if (!alloc_cpumask_var(&top_cpuset.effective_cpus, GFP_KERNEL)) in cpuset_init()
2073 cpumask_setall(top_cpuset.cpus_allowed); in cpuset_init()
2074 nodes_setall(top_cpuset.mems_allowed); in cpuset_init()
2075 cpumask_setall(top_cpuset.effective_cpus); in cpuset_init()
2076 nodes_setall(top_cpuset.effective_mems); in cpuset_init()
2078 fmeter_init(&top_cpuset.fmeter); in cpuset_init()
2079 set_bit(CS_SCHED_LOAD_BALANCE, &top_cpuset.flags); in cpuset_init()
2080 top_cpuset.relax_domain_level = -1; in cpuset_init()
2244 bool on_dfl = cgroup_on_dfl(top_cpuset.css.cgroup); in cpuset_hotplug_workfn()
2252 cpus_updated = !cpumask_equal(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
2253 mems_updated = !nodes_equal(top_cpuset.effective_mems, new_mems); in cpuset_hotplug_workfn()
2259 cpumask_copy(top_cpuset.cpus_allowed, &new_cpus); in cpuset_hotplug_workfn()
2260 cpumask_copy(top_cpuset.effective_cpus, &new_cpus); in cpuset_hotplug_workfn()
2269 top_cpuset.mems_allowed = new_mems; in cpuset_hotplug_workfn()
2270 top_cpuset.effective_mems = new_mems; in cpuset_hotplug_workfn()
2272 update_tasks_nodemask(&top_cpuset); in cpuset_hotplug_workfn()
2283 cpuset_for_each_descendant_pre(cs, pos_css, &top_cpuset) { in cpuset_hotplug_workfn()
2284 if (cs == &top_cpuset || !css_tryget_online(&cs->css)) in cpuset_hotplug_workfn()
2341 cpumask_copy(top_cpuset.cpus_allowed, cpu_active_mask); in cpuset_init_smp()
2342 top_cpuset.mems_allowed = node_states[N_MEMORY]; in cpuset_init_smp()
2343 top_cpuset.old_mems_allowed = top_cpuset.mems_allowed; in cpuset_init_smp()
2345 cpumask_copy(top_cpuset.effective_cpus, cpu_active_mask); in cpuset_init_smp()
2346 top_cpuset.effective_mems = node_states[N_MEMORY]; in cpuset_init_smp()