mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
sched/eevdf: Update slice protection even when resched is already set
Even if resched is already set, we might want to update or even cancel the slice protection and ensure that the newly waking task will be the next one to run. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: K Prateek Nayak <kprateek.nayak@amd.com> Link: https://patch.msgid.link/20260624151229.1710703-4-vincent.guittot@linaro.org
This commit is contained in:
parent
49f87b4d0b
commit
7ad0ec7890
|
|
@ -9848,7 +9848,7 @@ static void wakeup_preempt_fair(struct rq *rq, struct task_struct *p, int wake_f
|
|||
* prevents us from potentially nominating it as a false LAST_BUDDY
|
||||
* below.
|
||||
*/
|
||||
if (test_tsk_need_resched(rq->curr))
|
||||
if (!sched_feat(PREEMPT_SHORT) && test_tsk_need_resched(rq->curr))
|
||||
return;
|
||||
|
||||
if (!sched_feat(WAKEUP_PREEMPTION))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user