Commit 3313e031 authored by Vincent Guittot's avatar Vincent Guittot Committed by John Stultz
Browse files

BACKPORT: sched/fair: Always trigger resched at the end of a protected period



Always trigger a resched after a protected period even if the entity is
still eligible. It can happen that an entity remains eligible at the end
of the protected period but must let an entity with a shorter slice to run
in order to keep its lag shorter than slice. This is particulalry true
with run to parity which tries to maximize the lag.

Bug: 438500731
Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250708165630.1948751-7-vincent.guittot@linaro.org


[Trivial conflict in fair.c due to code differences from upstream.]
(cherry picked from commit 0b9ca2dc)
Signed-off-by: default avatarQais Yousef <qyousef@google.com>
Change-Id: Ib616567f67c81f2945f3d141004614373b0c48f6
parent 9e92c945
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment