Commit 993e6eda authored by Vincent Guittot's avatar Vincent Guittot Committed by John Stultz
Browse files

BACKPORT: sched/fair: Fix NO_RUN_TO_PARITY case



EEVDF expects the scheduler to allocate a time quantum to the selected
entity and then pick a new entity for next quantum.
Although this notion of time quantum is not strictly doable in our case,
we can ensure a minimum runtime for each task most of the time and pick a
new entity after a minimum time has elapsed.
Reuse the slice protection of run to parity to ensure such runtime
quantum.

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-3-vincent.guittot@linaro.org


[Trivial conflict due to new code added upstream around
did_preempt_short()]
(cherry picked from commit 74eec636)
Signed-off-by: default avatarQais Yousef <qyousef@google.com>
Change-Id: I82fe0b35391e916bd325b05b1070355a79ee7e2a
parent 46745210
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment