Commit 8726da30 authored by Vincent Guittot's avatar Vincent Guittot Committed by John Stultz
Browse files

BACKPORT: sched/fair: Remove spurious shorter slice preemption



Even if the waking task can preempt current, it might not be the one
selected by pick_task_fair. Check that the waking task will be selected
if we cancel the slice protection before doing so.

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


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