Searched refs:shares (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | autogroup.c | 212 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()
|
H A D | fair.c | 3237 long tg_weight, tg_shares, load, shares; in calc_group_shares() local 3240 tg_shares = READ_ONCE(tg->shares); in calc_group_shares() 3250 shares = (tg_shares * load); in calc_group_shares() 3252 shares /= tg_weight; in calc_group_shares() 3256 * of a group with small tg->shares value. It is a floor value which is in calc_group_shares() 3260 * E.g. on 64-bit for a group with tg->shares of scale_load(15)=15*1024 in calc_group_shares() 3261 * on an 8-core system with 8 tasks each runnable on one CPU shares has in calc_group_shares() 3266 return clamp_t(long, shares, MIN_SHARES, tg_shares); in calc_group_shares() 3279 long shares; in update_cfs_group() local 3288 shares in update_cfs_group() 11933 sched_group_set_shares(struct task_group *tg, unsigned long shares) sched_group_set_shares() argument [all...] |
H A D | sched.h | 192 * The extra resolution improves shares distribution and load balancing of 195 * and does not change the user-interface for setting shares/weights. 476 unsigned long shares; member 536 * too large, so as the shares value of a task group. 595 extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
|
H A D | core.c | 7683 root_task_group.shares = ROOT_TASK_GROUP_LOAD; in sched_init() 8106 /* End participation in shares distribution: */ in sched_offline_group() 8538 return (u64) scale_load_down(tg->shares); in cpu_shares_read_u64() 8844 .name = "shares", 8929 u64 weight = scale_load_down(tg->shares); in cpu_weight_read_u64() 8940 * a bit of range on both ends, it maps pretty well onto the shares in cpu_weight_write_u64() 8955 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64()
|
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | autogroup.c | 235 unsigned long shares; in proc_sched_autogroup_set_nice() local 256 shares = scale_load(sched_prio_to_weight[idx]); in proc_sched_autogroup_set_nice() 259 err = sched_group_set_shares(ag->tg, shares); in proc_sched_autogroup_set_nice()
|
H A D | fair.c | 3947 long tg_weight, tg_shares, load, shares; in calc_group_shares() local 3950 tg_shares = READ_ONCE(tg->shares); in calc_group_shares() 3960 shares = (tg_shares * load); in calc_group_shares() 3962 shares /= tg_weight; in calc_group_shares() 3966 * of a group with small tg->shares value. It is a floor value which is in calc_group_shares() 3970 * E.g. on 64-bit for a group with tg->shares of scale_load(15)=15*1024 in calc_group_shares() 3971 * on an 8-core system with 8 tasks each runnable on one CPU shares has in calc_group_shares() 3976 return clamp_t(long, shares, MIN_SHARES, tg_shares); in calc_group_shares() 3987 long shares; in update_cfs_group() local 3996 shares in update_cfs_group() 4001 reweight_entity(cfs_rq_of(se), se, shares); update_cfs_group() local 13434 __sched_group_set_shares(struct task_group *tg, unsigned long shares) __sched_group_set_shares() argument 13470 sched_group_set_shares(struct task_group *tg, unsigned long shares) sched_group_set_shares() argument [all...] |
H A D | sched.h | 215 * The extra resolution improves shares distribution and load balancing of 218 * and does not change the user-interface for setting shares/weights. 456 unsigned long shares; member 519 * too large, so as the shares value of a task group. 577 extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
|
H A D | core.c | 10627 root_task_group.shares = ROOT_TASK_GROUP_LOAD; in sched_init() 11559 return (u64) scale_load_down(tg->shares); in cpu_shares_read_u64() 11955 .name = "shares", 12076 u64 weight = scale_load_down(tg->shares); in cpu_weight_read_u64() 12087 * a bit of range on both ends, it maps pretty well onto the shares in cpu_weight_write_u64() 12102 unsigned long weight = scale_load_down(css_tg(css)->shares); in cpu_weight_nice_read_s64()
|
Completed in 57 milliseconds