Lines Matching refs:shares
2339 long tg_weight, load, shares; in calc_cfs_shares() local
2344 shares = (tg->shares * load); in calc_cfs_shares()
2346 shares /= tg_weight; in calc_cfs_shares()
2348 if (shares < MIN_SHARES) in calc_cfs_shares()
2349 shares = MIN_SHARES; in calc_cfs_shares()
2350 if (shares > tg->shares) in calc_cfs_shares()
2351 shares = tg->shares; in calc_cfs_shares()
2353 return shares; in calc_cfs_shares()
2358 return tg->shares; in calc_cfs_shares()
2383 long shares; in update_cfs_shares() local
2390 if (likely(se->load.weight == tg->shares)) in update_cfs_shares()
2393 shares = calc_cfs_shares(cfs_rq, tg); in update_cfs_shares()
2395 reweight_entity(cfs_rq_of(se), se, shares); in update_cfs_shares()
2669 contrib = cfs_rq->tg_load_contrib * tg->shares; in __update_group_entity_contrib()
4504 wl = (w * (long)tg->shares) / W; in effective_load()
4506 wl = tg->shares; in effective_load()
8079 tg->shares = NICE_0_LOAD; in alloc_fair_sched_group()
8156 int sched_group_set_shares(struct task_group *tg, unsigned long shares) in sched_group_set_shares() argument
8167 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES)); in sched_group_set_shares()
8170 if (tg->shares == shares) in sched_group_set_shares()
8173 tg->shares = shares; in sched_group_set_shares()