Lines Matching defs:shares
3320 long tg_weight, tg_shares, load, shares;
3323 tg_shares = READ_ONCE(tg->shares);
3333 shares = (tg_shares * load);
3335 shares /= tg_weight;
3340 * of a group with small tg->shares value. It is a floor value which is
3344 * E.g. on 64-bit for a group with tg->shares of scale_load(15)=15*1024
3345 * on an 8-core system with 8 tasks each runnable on one CPU shares has
3350 return clamp_t(long, shares, MIN_SHARES, tg_shares);
3363 long shares;
3374 shares = READ_ONCE(gcfs_rq->tg->shares);
3375 if (likely(se->load.weight == shares)) {
3379 shares = calc_group_shares(gcfs_rq);
3382 reweight_entity(cfs_rq_of(se), se, shares);
11879 tg->shares = NICE_0_LOAD;
11988 int sched_group_set_shares(struct task_group *tg, unsigned long shares)
11999 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES));
12002 if (tg->shares == shares) {
12006 tg->shares = shares;