Home
last modified time | relevance | path

Searched refs:shares (Results 1 – 4 of 4) sorted by relevance

/kernel/sched/
Dautogroup.c212 unsigned long shares; in proc_sched_autogroup_set_nice() local
233 shares = scale_load(sched_prio_to_weight[idx]); in proc_sched_autogroup_set_nice()
236 err = sched_group_set_shares(ag->tg, shares); in proc_sched_autogroup_set_nice()
Dfair.c2998 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()
[all …]
Dsched.h365 unsigned long shares; member
476 extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
Dcore.c6751 root_task_group.shares = ROOT_TASK_GROUP_LOAD; in sched_init()
7518 return (u64) scale_load_down(tg->shares); in cpu_shares_read_u64()
7907 u64 weight = scale_load_down(tg->shares); in cpu_weight_read_u64()
7933 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64()