Lines Matching refs:weight
894 load->weight = scale_load(WEIGHT_IDLEPRIO); in set_load_weight()
906 load->weight = scale_load(sched_prio_to_weight[prio]); in set_load_weight()
8708 u64 weight = scale_load_down(tg->shares); in cpu_weight_read_u64() local
8710 return DIV_ROUND_CLOSEST_ULL(weight * CGROUP_WEIGHT_DFL, 1024); in cpu_weight_read_u64()
8714 struct cftype *cft, u64 weight) in cpu_weight_write_u64() argument
8723 if (weight < CGROUP_WEIGHT_MIN || weight > CGROUP_WEIGHT_MAX) in cpu_weight_write_u64()
8726 weight = DIV_ROUND_CLOSEST_ULL(weight * 1024, CGROUP_WEIGHT_DFL); in cpu_weight_write_u64()
8728 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_write_u64()
8734 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64() local
8740 delta = abs(sched_prio_to_weight[prio] - weight); in cpu_weight_nice_read_s64()
8752 unsigned long weight; in cpu_weight_nice_write_s64() local
8760 weight = sched_prio_to_weight[idx]; in cpu_weight_nice_write_s64()
8762 return sched_group_set_shares(css_tg(css), scale_load(weight)); in cpu_weight_nice_write_s64()