Searched refs:cgrp_weight (Results 1 – 2 of 2) sorted by relevance
10356 struct cftype *cft, u64 cgrp_weight) in cpu_weight_write_u64() argument10361 if (cgrp_weight < CGROUP_WEIGHT_MIN || cgrp_weight > CGROUP_WEIGHT_MAX) in cpu_weight_write_u64()10364 weight = sched_weight_from_cgroup(cgrp_weight); in cpu_weight_write_u64()10368 scx_group_set_weight(css_tg(css), cgrp_weight); in cpu_weight_write_u64()
261 static inline unsigned long sched_weight_from_cgroup(unsigned long cgrp_weight) in sched_weight_from_cgroup() argument263 return DIV_ROUND_CLOSEST_ULL(cgrp_weight * 1024, CGROUP_WEIGHT_DFL); in sched_weight_from_cgroup()