Lines Matching defs:shares
4805 long tg_weight, tg_shares, load, shares;
4808 tg_shares = READ_ONCE(tg->shares);
4818 shares = (tg_shares * load);
4820 shares /= tg_weight;
4824 * of a group with small tg->shares value. It is a floor value which is
4828 * E.g. on 64-bit for a group with tg->shares of scale_load(15)=15*1024
4829 * on an 8-core system with 8 tasks each runnable on one CPU shares has
4834 return clamp_t(long, shares, MIN_SHARES, tg_shares);
4844 long shares;
4853 shares = calc_group_shares(gcfs_rq);
4854 if (unlikely(se->load.weight != shares))
4855 reweight_entity(cfs_rq_of(se), se, shares);
15116 tg->shares = NICE_0_LOAD;
15219 static int __sched_group_set_shares(struct task_group *tg, unsigned long shares)
15231 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES));
15233 if (tg->shares == shares)
15236 tg->shares = shares;
15255 int sched_group_set_shares(struct task_group *tg, unsigned long shares)
15263 ret = __sched_group_set_shares(tg, shares);