Lines Matching refs:css
7798 struct task_group, css); in sched_move_task()
8193 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() argument
8195 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
8206 return &root_task_group.css; in cpu_cgroup_css_alloc()
8215 return &tg->css; in cpu_cgroup_css_alloc()
8218 static void cpu_cgroup_css_released(struct cgroup_subsys_state *css) in cpu_cgroup_css_released() argument
8220 struct task_group *tg = css_tg(css); in cpu_cgroup_css_released()
8225 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free() argument
8227 struct task_group *tg = css_tg(css); in cpu_cgroup_css_free()
8243 struct cgroup_subsys_state *css; in cpu_cgroup_can_attach() local
8245 cgroup_taskset_for_each(task, css, tset) { in cpu_cgroup_can_attach()
8247 if (!sched_rt_can_attach(css_tg(css), task)) in cpu_cgroup_can_attach()
8261 struct cgroup_subsys_state *css; in cpu_cgroup_attach() local
8263 cgroup_taskset_for_each(task, css, tset) in cpu_cgroup_attach()
8268 static int cpu_shares_write_u64(struct cgroup_subsys_state *css, in cpu_shares_write_u64() argument
8271 return sched_group_set_shares(css_tg(css), scale_load(shareval)); in cpu_shares_write_u64()
8274 static u64 cpu_shares_read_u64(struct cgroup_subsys_state *css, in cpu_shares_read_u64() argument
8277 struct task_group *tg = css_tg(css); in cpu_shares_read_u64()
8409 static s64 cpu_cfs_quota_read_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_read_s64() argument
8412 return tg_get_cfs_quota(css_tg(css)); in cpu_cfs_quota_read_s64()
8415 static int cpu_cfs_quota_write_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_write_s64() argument
8418 return tg_set_cfs_quota(css_tg(css), cfs_quota_us); in cpu_cfs_quota_write_s64()
8421 static u64 cpu_cfs_period_read_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_read_u64() argument
8424 return tg_get_cfs_period(css_tg(css)); in cpu_cfs_period_read_u64()
8427 static int cpu_cfs_period_write_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_write_u64() argument
8430 return tg_set_cfs_period(css_tg(css), cfs_period_us); in cpu_cfs_period_write_u64()
8526 static int cpu_rt_runtime_write(struct cgroup_subsys_state *css, in cpu_rt_runtime_write() argument
8529 return sched_group_set_rt_runtime(css_tg(css), val); in cpu_rt_runtime_write()
8532 static s64 cpu_rt_runtime_read(struct cgroup_subsys_state *css, in cpu_rt_runtime_read() argument
8535 return sched_group_rt_runtime(css_tg(css)); in cpu_rt_runtime_read()
8538 static int cpu_rt_period_write_uint(struct cgroup_subsys_state *css, in cpu_rt_period_write_uint() argument
8541 return sched_group_set_rt_period(css_tg(css), rt_period_us); in cpu_rt_period_write_uint()
8544 static u64 cpu_rt_period_read_uint(struct cgroup_subsys_state *css, in cpu_rt_period_read_uint() argument
8547 return sched_group_rt_period(css_tg(css)); in cpu_rt_period_read_uint()