Lines Matching refs:css
1377 uclamp_update_active_tasks(struct cgroup_subsys_state *css) in uclamp_update_active_tasks() argument
1382 css_task_iter_start(css, 0, &it); in uclamp_update_active_tasks()
1388 static void cpu_util_update_eff(struct cgroup_subsys_state *css);
1399 cpu_util_update_eff(&root_task_group.css); in uclamp_update_root_tg()
3545 struct task_group, css); in sched_cgroup_fork()
7929 struct task_group, css); in sched_change_group()
7983 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() argument
7985 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
7996 return &root_task_group.css; in cpu_cgroup_css_alloc()
8003 return &tg->css; in cpu_cgroup_css_alloc()
8007 static int cpu_cgroup_css_online(struct cgroup_subsys_state *css) in cpu_cgroup_css_online() argument
8009 struct task_group *tg = css_tg(css); in cpu_cgroup_css_online()
8010 struct task_group *parent = css_tg(css->parent); in cpu_cgroup_css_online()
8019 cpu_util_update_eff(css); in cpu_cgroup_css_online()
8024 trace_android_rvh_cpu_cgroup_online(css); in cpu_cgroup_css_online()
8028 static void cpu_cgroup_css_released(struct cgroup_subsys_state *css) in cpu_cgroup_css_released() argument
8030 struct task_group *tg = css_tg(css); in cpu_cgroup_css_released()
8035 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free() argument
8037 struct task_group *tg = css_tg(css); in cpu_cgroup_css_free()
8065 struct cgroup_subsys_state *css; in cpu_cgroup_can_attach() local
8068 cgroup_taskset_for_each(task, css, tset) { in cpu_cgroup_can_attach()
8070 if (!sched_rt_can_attach(css_tg(css), task)) in cpu_cgroup_can_attach()
8099 struct cgroup_subsys_state *css; in cpu_cgroup_attach() local
8101 cgroup_taskset_for_each(task, css, tset) in cpu_cgroup_attach()
8108 static void cpu_util_update_eff(struct cgroup_subsys_state *css) in cpu_util_update_eff() argument
8110 struct cgroup_subsys_state *top_css = css; in cpu_util_update_eff()
8120 css_for_each_descendant_pre(css, top_css) { in cpu_util_update_eff()
8121 uc_parent = css_tg(css)->parent in cpu_util_update_eff()
8122 ? css_tg(css)->parent->uclamp : NULL; in cpu_util_update_eff()
8126 eff[clamp_id] = css_tg(css)->uclamp_req[clamp_id].value; in cpu_util_update_eff()
8138 uc_se = css_tg(css)->uclamp; in cpu_util_update_eff()
8147 css = css_rightmost_descendant(css); in cpu_util_update_eff()
8152 uclamp_update_active_tasks(css); in cpu_util_update_eff()
8283 static int cpu_uclamp_ls_write_u64(struct cgroup_subsys_state *css, in cpu_uclamp_ls_write_u64() argument
8290 tg = css_tg(css); in cpu_uclamp_ls_write_u64()
8296 static u64 cpu_uclamp_ls_read_u64(struct cgroup_subsys_state *css, in cpu_uclamp_ls_read_u64() argument
8299 struct task_group *tg = css_tg(css); in cpu_uclamp_ls_read_u64()
8306 static int cpu_shares_write_u64(struct cgroup_subsys_state *css, in cpu_shares_write_u64() argument
8311 return sched_group_set_shares(css_tg(css), scale_load(shareval)); in cpu_shares_write_u64()
8314 static u64 cpu_shares_read_u64(struct cgroup_subsys_state *css, in cpu_shares_read_u64() argument
8317 struct task_group *tg = css_tg(css); in cpu_shares_read_u64()
8465 static s64 cpu_cfs_quota_read_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_read_s64() argument
8468 return tg_get_cfs_quota(css_tg(css)); in cpu_cfs_quota_read_s64()
8471 static int cpu_cfs_quota_write_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_write_s64() argument
8474 return tg_set_cfs_quota(css_tg(css), cfs_quota_us); in cpu_cfs_quota_write_s64()
8477 static u64 cpu_cfs_period_read_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_read_u64() argument
8480 return tg_get_cfs_period(css_tg(css)); in cpu_cfs_period_read_u64()
8483 static int cpu_cfs_period_write_u64(struct cgroup_subsys_state *css, in cpu_cfs_period_write_u64() argument
8486 return tg_set_cfs_period(css_tg(css), cfs_period_us); in cpu_cfs_period_write_u64()
8597 static int cpu_rt_runtime_write(struct cgroup_subsys_state *css, in cpu_rt_runtime_write() argument
8600 return sched_group_set_rt_runtime(css_tg(css), val); in cpu_rt_runtime_write()
8603 static s64 cpu_rt_runtime_read(struct cgroup_subsys_state *css, in cpu_rt_runtime_read() argument
8606 return sched_group_rt_runtime(css_tg(css)); in cpu_rt_runtime_read()
8609 static int cpu_rt_period_write_uint(struct cgroup_subsys_state *css, in cpu_rt_period_write_uint() argument
8612 return sched_group_set_rt_period(css_tg(css), rt_period_us); in cpu_rt_period_write_uint()
8615 static u64 cpu_rt_period_read_uint(struct cgroup_subsys_state *css, in cpu_rt_period_read_uint() argument
8618 return sched_group_rt_period(css_tg(css)); in cpu_rt_period_read_uint()
8682 struct cgroup_subsys_state *css) in cpu_extra_stat_show() argument
8686 struct task_group *tg = css_tg(css); in cpu_extra_stat_show()
8704 static u64 cpu_weight_read_u64(struct cgroup_subsys_state *css, in cpu_weight_read_u64() argument
8707 struct task_group *tg = css_tg(css); in cpu_weight_read_u64()
8713 static int cpu_weight_write_u64(struct cgroup_subsys_state *css, in cpu_weight_write_u64() argument
8728 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_write_u64()
8731 static s64 cpu_weight_nice_read_s64(struct cgroup_subsys_state *css, in cpu_weight_nice_read_s64() argument
8734 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64()
8749 static int cpu_weight_nice_write_s64(struct cgroup_subsys_state *css, in cpu_weight_nice_write_s64() argument
8762 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_nice_write_s64()