Lines Matching refs:shares
3947 long tg_weight, tg_shares, load, shares;
3950 tg_shares = READ_ONCE(tg->shares);
3960 shares = (tg_shares * load);
3962 shares /= tg_weight;
3966 * of a group with small tg->shares value. It is a floor value which is
3970 * E.g. on 64-bit for a group with tg->shares of scale_load(15)=15*1024
3971 * on an 8-core system with 8 tasks each runnable on one CPU shares has
3976 return clamp_t(long, shares, MIN_SHARES, tg_shares);
3987 long shares;
3996 shares = READ_ONCE(gcfs_rq->tg->shares);
3998 shares = calc_group_shares(gcfs_rq);
4000 if (unlikely(se->load.weight != shares))
4001 reweight_entity(cfs_rq_of(se), se, shares);
13328 tg->shares = NICE_0_LOAD;
13434 static int __sched_group_set_shares(struct task_group *tg, unsigned long shares)
13446 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES));
13448 if (tg->shares == shares)
13451 tg->shares = shares;
13470 int sched_group_set_shares(struct task_group *tg, unsigned long shares)
13478 ret = __sched_group_set_shares(tg, shares);