Lines Matching refs:shares
2380 long tg_weight, load, shares; in calc_cfs_shares() local
2385 shares = (tg->shares * load); in calc_cfs_shares()
2387 shares /= tg_weight; in calc_cfs_shares()
2389 if (shares < MIN_SHARES) in calc_cfs_shares()
2390 shares = MIN_SHARES; in calc_cfs_shares()
2391 if (shares > tg->shares) in calc_cfs_shares()
2392 shares = tg->shares; in calc_cfs_shares()
2394 return shares; in calc_cfs_shares()
2399 return tg->shares; in calc_cfs_shares()
2424 long shares; in update_cfs_shares() local
2431 if (likely(se->load.weight == tg->shares)) in update_cfs_shares()
2434 shares = calc_cfs_shares(cfs_rq, tg); in update_cfs_shares()
2436 reweight_entity(cfs_rq_of(se), se, shares); in update_cfs_shares()
4598 wl = (w * (long)tg->shares) / W; in effective_load()
4600 wl = tg->shares; in effective_load()
8125 tg->shares = NICE_0_LOAD; in alloc_fair_sched_group()
8203 int sched_group_set_shares(struct task_group *tg, unsigned long shares) in sched_group_set_shares() argument
8214 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES)); in sched_group_set_shares()
8217 if (tg->shares == shares) in sched_group_set_shares()
8220 tg->shares = shares; in sched_group_set_shares()