mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
sched/deadline: Fix replenishment logic for non-deferred servers
Enqueue and replenish non-deferred deadline servers when their runtime is exhausted and the replenishment timer could not be started because it is too close to the wake-up instant. Signed-off-by: Yuri Andriaccio <yurand2000@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260430213835.62217-2-yurand2000@gmail.com
This commit is contained in:
parent
c2e390197a
commit
eecd5e117c
|
|
@ -1515,8 +1515,12 @@ static void update_curr_dl_se(struct rq *rq, struct sched_dl_entity *dl_se, s64
|
|||
|
||||
if (unlikely(is_dl_boosted(dl_se) || !start_dl_timer(dl_se))) {
|
||||
if (dl_server(dl_se)) {
|
||||
replenish_dl_new_period(dl_se, rq);
|
||||
start_dl_timer(dl_se);
|
||||
if (dl_se->dl_defer) {
|
||||
replenish_dl_new_period(dl_se, rq);
|
||||
start_dl_timer(dl_se);
|
||||
} else {
|
||||
enqueue_dl_entity(dl_se, ENQUEUE_REPLENISH);
|
||||
}
|
||||
} else {
|
||||
enqueue_task_dl(rq, dl_task_of(dl_se), ENQUEUE_REPLENISH);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user