Lines Matching refs:css
1079 uclamp_update_active_tasks(struct cgroup_subsys_state *css, in uclamp_update_active_tasks() argument
1086 css_task_iter_start(css, 0, &it); in uclamp_update_active_tasks()
1096 static void cpu_util_update_eff(struct cgroup_subsys_state *css);
1107 cpu_util_update_eff(&root_task_group.css); in uclamp_update_root_tg()
7017 struct task_group, css); in sched_change_group()
7064 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() argument
7066 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
7077 return &root_task_group.css; in cpu_cgroup_css_alloc()
7084 return &tg->css; in cpu_cgroup_css_alloc()
7088 static int cpu_cgroup_css_online(struct cgroup_subsys_state *css) in cpu_cgroup_css_online() argument
7090 struct task_group *tg = css_tg(css); in cpu_cgroup_css_online()
7091 struct task_group *parent = css_tg(css->parent); in cpu_cgroup_css_online()
7098 static void cpu_cgroup_css_released(struct cgroup_subsys_state *css) in cpu_cgroup_css_released() argument
7100 struct task_group *tg = css_tg(css); in cpu_cgroup_css_released()
7105 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free() argument
7107 struct task_group *tg = css_tg(css); in cpu_cgroup_css_free()
7135 struct cgroup_subsys_state *css; in cpu_cgroup_can_attach() local
7138 cgroup_taskset_for_each(task, css, tset) { in cpu_cgroup_can_attach()
7140 if (!sched_rt_can_attach(css_tg(css), task)) in cpu_cgroup_can_attach()
7166 struct cgroup_subsys_state *css; in cpu_cgroup_attach() local
7168 cgroup_taskset_for_each(task, css, tset) in cpu_cgroup_attach()
7173 static void cpu_util_update_eff(struct cgroup_subsys_state *css) in cpu_util_update_eff() argument
7175 struct cgroup_subsys_state *top_css = css; in cpu_util_update_eff()
7182 css_for_each_descendant_pre(css, top_css) { in cpu_util_update_eff()
7183 uc_parent = css_tg(css)->parent in cpu_util_update_eff()
7184 ? css_tg(css)->parent->uclamp : NULL; in cpu_util_update_eff()
7188 eff[clamp_id] = css_tg(css)->uclamp_req[clamp_id].value; in cpu_util_update_eff()
7200 uc_se = css_tg(css)->uclamp; in cpu_util_update_eff()
7209 css = css_rightmost_descendant(css); in cpu_util_update_eff()
7214 uclamp_update_active_tasks(css, clamps); in cpu_util_update_eff()
7343 static int cpu_uclamp_ls_write_u64(struct cgroup_subsys_state *css, in cpu_uclamp_ls_write_u64() argument
7350 tg = css_tg(css); in cpu_uclamp_ls_write_u64()
7356 static u64 cpu_uclamp_ls_read_u64(struct cgroup_subsys_state *css, in cpu_uclamp_ls_read_u64() argument
7359 struct task_group *tg = css_tg(css); in cpu_uclamp_ls_read_u64()
7366 static int cpu_shares_write_u64(struct cgroup_subsys_state *css, in cpu_shares_write_u64() argument
7371 return sched_group_set_shares(css_tg(css), scale_load(shareval)); in cpu_shares_write_u64()
7374 static u64 cpu_shares_read_u64(struct cgroup_subsys_state *css, in cpu_shares_read_u64() argument
7377 struct task_group *tg = css_tg(css); in cpu_shares_read_u64()
7517 static s64 cpu_cfs_quota_read_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_read_s64() argument
7520 return tg_get_cfs_quota(css_tg(css)); in cpu_cfs_quota_read_s64()
7523 static int cpu_cfs_quota_write_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_write_s64() argument
7526 return tg_set_cfs_quota(css_tg(css), cfs_quota_us); in cpu_cfs_quota_write_s64()
7529 static u64 cpu_cfs_period_read_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_read_u64() argument
7532 return tg_get_cfs_period(css_tg(css)); in cpu_cfs_period_read_u64()
7535 static int cpu_cfs_period_write_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_write_u64() argument
7538 return tg_set_cfs_period(css_tg(css), cfs_period_us); in cpu_cfs_period_write_u64()
7649 static int cpu_rt_runtime_write(struct cgroup_subsys_state *css, in cpu_rt_runtime_write() argument
7652 return sched_group_set_rt_runtime(css_tg(css), val); in cpu_rt_runtime_write()
7655 static s64 cpu_rt_runtime_read(struct cgroup_subsys_state *css, in cpu_rt_runtime_read() argument
7658 return sched_group_rt_runtime(css_tg(css)); in cpu_rt_runtime_read()
7661 static int cpu_rt_period_write_uint(struct cgroup_subsys_state *css, in cpu_rt_period_write_uint() argument
7664 return sched_group_set_rt_period(css_tg(css), rt_period_us); in cpu_rt_period_write_uint()
7667 static u64 cpu_rt_period_read_uint(struct cgroup_subsys_state *css, in cpu_rt_period_read_uint() argument
7670 return sched_group_rt_period(css_tg(css)); in cpu_rt_period_read_uint()
7734 struct cgroup_subsys_state *css) in cpu_extra_stat_show() argument
7738 struct task_group *tg = css_tg(css); in cpu_extra_stat_show()
7756 static u64 cpu_weight_read_u64(struct cgroup_subsys_state *css, in cpu_weight_read_u64() argument
7759 struct task_group *tg = css_tg(css); in cpu_weight_read_u64()
7765 static int cpu_weight_write_u64(struct cgroup_subsys_state *css, in cpu_weight_write_u64() argument
7780 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_write_u64()
7783 static s64 cpu_weight_nice_read_s64(struct cgroup_subsys_state *css, in cpu_weight_nice_read_s64() argument
7786 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64()
7801 static int cpu_weight_nice_write_s64(struct cgroup_subsys_state *css, in cpu_weight_nice_write_s64() argument
7814 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_nice_write_s64()