Lines Matching refs:shares
3158 long tg_weight, tg_shares, load, shares; in calc_group_shares() local
3161 tg_shares = READ_ONCE(tg->shares); in calc_group_shares()
3171 shares = (tg_shares * load); in calc_group_shares()
3173 shares /= tg_weight; in calc_group_shares()
3187 return clamp_t(long, shares, MIN_SHARES, tg_shares); in calc_group_shares()
3200 long shares; in update_cfs_group() local
3209 shares = READ_ONCE(gcfs_rq->tg->shares); in update_cfs_group()
3211 if (likely(se->load.weight == shares)) in update_cfs_group()
3214 shares = calc_group_shares(gcfs_rq); in update_cfs_group()
3217 reweight_entity(cfs_rq_of(se), se, shares); in update_cfs_group()
11483 tg->shares = NICE_0_LOAD; in alloc_fair_sched_group()
11589 static int __sched_group_set_shares(struct task_group *tg, unsigned long shares) in __sched_group_set_shares() argument
11601 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES)); in __sched_group_set_shares()
11603 if (tg->shares == shares) in __sched_group_set_shares()
11606 tg->shares = shares; in __sched_group_set_shares()
11625 int sched_group_set_shares(struct task_group *tg, unsigned long shares) in sched_group_set_shares() argument
11633 ret = __sched_group_set_shares(tg, shares); in sched_group_set_shares()