Lines Matching full:cs

10 	struct cpuset *cs;  member
147 static int update_relax_domain_level(struct cpuset *cs, s64 val) in update_relax_domain_level() argument
154 if (val != cs->relax_domain_level) { in update_relax_domain_level()
155 cs->relax_domain_level = val; in update_relax_domain_level()
156 if (!cpumask_empty(cs->cpus_allowed) && in update_relax_domain_level()
157 is_sched_load_balance(cs)) in update_relax_domain_level()
167 struct cpuset *cs = css_cs(css); in cpuset_write_s64() local
173 if (!is_cpuset_online(cs)) in cpuset_write_s64()
178 retval = update_relax_domain_level(cs, val); in cpuset_write_s64()
192 struct cpuset *cs = css_cs(css); in cpuset_read_s64() local
197 return cs->relax_domain_level; in cpuset_read_s64()
212 void cpuset1_update_task_spread_flags(struct cpuset *cs, in cpuset1_update_task_spread_flags() argument
218 if (is_spread_page(cs)) in cpuset1_update_task_spread_flags()
223 if (is_spread_slab(cs)) in cpuset1_update_task_spread_flags()
231 * @cs: the cpuset in which each task's spread flags needs to be changed
233 * Iterate through each task of @cs updating its spread flags. As this
237 void cpuset1_update_tasks_flags(struct cpuset *cs) in cpuset1_update_tasks_flags() argument
242 css_task_iter_start(&cs->css, 0, &it); in cpuset1_update_tasks_flags()
244 cpuset1_update_task_spread_flags(cs, task); in cpuset1_update_tasks_flags()
255 static void remove_tasks_in_empty_cpuset(struct cpuset *cs) in remove_tasks_in_empty_cpuset() argument
263 parent = parent_cs(cs); in remove_tasks_in_empty_cpuset()
268 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
270 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset()
280 remove_tasks_in_empty_cpuset(s->cs); in cpuset_migrate_tasks_workfn()
281 css_put(&s->cs->css); in cpuset_migrate_tasks_workfn()
285 void cpuset1_hotplug_update_tasks(struct cpuset *cs, in cpuset1_hotplug_update_tasks() argument
292 cpumask_copy(cs->cpus_allowed, new_cpus); in cpuset1_hotplug_update_tasks()
293 cpumask_copy(cs->effective_cpus, new_cpus); in cpuset1_hotplug_update_tasks()
294 cs->mems_allowed = *new_mems; in cpuset1_hotplug_update_tasks()
295 cs->effective_mems = *new_mems; in cpuset1_hotplug_update_tasks()
302 if (cpus_updated && !cpumask_empty(cs->cpus_allowed)) in cpuset1_hotplug_update_tasks()
303 cpuset_update_tasks_cpumask(cs, new_cpus); in cpuset1_hotplug_update_tasks()
304 if (mems_updated && !nodes_empty(cs->mems_allowed)) in cpuset1_hotplug_update_tasks()
305 cpuset_update_tasks_nodemask(cs); in cpuset1_hotplug_update_tasks()
307 is_empty = cpumask_empty(cs->cpus_allowed) || in cpuset1_hotplug_update_tasks()
308 nodes_empty(cs->mems_allowed); in cpuset1_hotplug_update_tasks()
315 if (is_empty && cs->css.cgroup->nr_populated_csets && in cpuset1_hotplug_update_tasks()
316 css_tryget_online(&cs->css)) { in cpuset1_hotplug_update_tasks()
321 css_put(&cs->css); in cpuset1_hotplug_update_tasks()
325 s->cs = cs; in cpuset1_hotplug_update_tasks()
378 struct cpuset *cs = css_cs(css); in cpuset_read_u64() local
383 return is_cpu_exclusive(cs); in cpuset_read_u64()
385 return is_mem_exclusive(cs); in cpuset_read_u64()
387 return is_mem_hardwall(cs); in cpuset_read_u64()
389 return is_sched_load_balance(cs); in cpuset_read_u64()
391 return is_memory_migrate(cs); in cpuset_read_u64()
395 return fmeter_getrate(&cs->fmeter); in cpuset_read_u64()
397 return is_spread_page(cs); in cpuset_read_u64()
399 return is_spread_slab(cs); in cpuset_read_u64()
411 struct cpuset *cs = css_cs(css); in cpuset_write_u64() local
417 if (!is_cpuset_online(cs)) { in cpuset_write_u64()
424 retval = cpuset_update_flag(CS_CPU_EXCLUSIVE, cs, val); in cpuset_write_u64()
427 retval = cpuset_update_flag(CS_MEM_EXCLUSIVE, cs, val); in cpuset_write_u64()
430 retval = cpuset_update_flag(CS_MEM_HARDWALL, cs, val); in cpuset_write_u64()
433 retval = cpuset_update_flag(CS_SCHED_LOAD_BALANCE, cs, val); in cpuset_write_u64()
436 retval = cpuset_update_flag(CS_MEMORY_MIGRATE, cs, val); in cpuset_write_u64()
442 retval = cpuset_update_flag(CS_SPREAD_PAGE, cs, val); in cpuset_write_u64()
445 retval = cpuset_update_flag(CS_SPREAD_SLAB, cs, val); in cpuset_write_u64()