]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/fair: Fix entity's lag with run to parity
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 8 Jul 2025 16:56:29 +0000 (18:56 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:23 +0000 (13:40 +0200)
commit3a0baa8e6c570c252999cb651398a88f8f990b4a
tree1a1fb81e8540423c400d51799da8c4678ff5389d
parent052c3d87c82ea4ee83232b747512847b4e8c9976
sched/fair: Fix entity's lag with run to parity

When an entity is enqueued without preempting current, we must ensure
that the slice protection is updated to take into account the slice
duration of the newly enqueued task so that its lag will not exceed
its slice (+ tick).

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-6-vincent.guittot@linaro.org
kernel/sched/fair.c