mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 07:11:03 +02:00
sched/eevdf: Ensure that vprot will never go above a min slice
ineligible_vruntime() can be after the duration of a min slice but we want to make sure that current will not run more than a min slice. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260921152238.3804392-2-vincent.guittot@linaro.org
This commit is contained in:
parent
c9ce69fc43
commit
aae2a33ea6
|
|
@ -1128,10 +1128,9 @@ static inline void set_protect_slice(struct cfs_rq *cfs_rq, struct sched_entity
|
|||
|
||||
/* If there are shorter slices than se's one */
|
||||
if (slice != se->slice) {
|
||||
vprot = min_vruntime(vprot, se->vruntime + calc_delta_fair(slice, se));
|
||||
if (sched_feat(PREEMPT_SHORT))
|
||||
vprot = min_vruntime(vprot, ineligible_vruntime(cfs_rq));
|
||||
else
|
||||
vprot = min_vruntime(vprot, se->vruntime + calc_delta_fair(slice, se));
|
||||
}
|
||||
|
||||
se->vprot = vprot;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user