Lines Matching refs:shares
2998 long tg_weight, tg_shares, load, shares; in calc_group_shares() local
3001 tg_shares = READ_ONCE(tg->shares); in calc_group_shares()
3011 shares = (tg_shares * load); in calc_group_shares()
3013 shares /= tg_weight; in calc_group_shares()
3027 return clamp_t(long, shares, MIN_SHARES, tg_shares); in calc_group_shares()
3057 static long calc_group_runnable(struct cfs_rq *cfs_rq, long shares) in calc_group_runnable() argument
3067 runnable *= shares; in calc_group_runnable()
3071 return clamp_t(long, runnable, MIN_SHARES, shares); in calc_group_runnable()
3084 long shares, runnable; in update_cfs_group() local
3093 runnable = shares = READ_ONCE(gcfs_rq->tg->shares); in update_cfs_group()
3095 if (likely(se->load.weight == shares)) in update_cfs_group()
3098 shares = calc_group_shares(gcfs_rq); in update_cfs_group()
3099 runnable = calc_group_runnable(gcfs_rq, shares); in update_cfs_group()
3102 reweight_entity(cfs_rq_of(se), se, shares, runnable); in update_cfs_group()
10612 tg->shares = NICE_0_LOAD; in alloc_fair_sched_group()
10716 int sched_group_set_shares(struct task_group *tg, unsigned long shares) in sched_group_set_shares() argument
10726 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES)); in sched_group_set_shares()
10729 if (tg->shares == shares) in sched_group_set_shares()
10732 tg->shares = shares; in sched_group_set_shares()