Lines Matching refs:shares
888 long tg_weight, load, shares; in calc_cfs_shares() local
893 shares = (tg->shares * load); in calc_cfs_shares()
895 shares /= tg_weight; in calc_cfs_shares()
897 if (shares < MIN_SHARES) in calc_cfs_shares()
898 shares = MIN_SHARES; in calc_cfs_shares()
899 if (shares > tg->shares) in calc_cfs_shares()
900 shares = tg->shares; in calc_cfs_shares()
902 return shares; in calc_cfs_shares()
919 return tg->shares; in calc_cfs_shares()
946 long shares; in update_cfs_shares() local
953 if (likely(se->load.weight == tg->shares)) in update_cfs_shares()
956 shares = calc_cfs_shares(cfs_rq, tg); in update_cfs_shares()
958 reweight_entity(cfs_rq_of(se), se, shares); in update_cfs_shares()
2452 wl = (w * tg->shares) / W; in effective_load()
2454 wl = tg->shares; in effective_load()
5405 tg->shares = NICE_0_LOAD; in alloc_fair_sched_group()
5483 int sched_group_set_shares(struct task_group *tg, unsigned long shares) in sched_group_set_shares() argument
5494 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES)); in sched_group_set_shares()
5497 if (tg->shares == shares) in sched_group_set_shares()
5500 tg->shares = shares; in sched_group_set_shares()