]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/fair: Fix NO_RUN_TO_PARITY case
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 8 Jul 2025 16:56:26 +0000 (18:56 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:22 +0000 (13:40 +0200)
commit74eec63661d46a7153d04c2e0249eeb76cc76d44
tree5b4fa7844537b4ab10e0a817d04c230f343c76f0
parent9cdb4fe20cd239c848b5c3f5753d83a9443ba329
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.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250708165630.1948751-3-vincent.guittot@linaro.org
include/linux/sched.h
kernel/sched/fair.c