Skip to content
Commit aa3ee4f0 authored by Xuewen Yan's avatar Xuewen Yan Committed by Peter Zijlstra
Browse files

sched/fair: Fixup wake_up_sync() vs DELAYED_DEQUEUE



Delayed dequeued feature keeps a sleeping task enqueued until its
lag has elapsed. As a result, it stays also visible in rq->nr_running.
So when in wake_affine_idle(), we should use the real running-tasks
in rq to check whether we should place the wake-up task to
current cpu.
On the other hand, add a helper function to return the nr-delayed.

Fixes: 152e11f6 ("sched/fair: Implement delayed dequeue")
Signed-off-by: default avatarXuewen Yan <xuewen.yan@unisoc.com>
Reviewed-and-tested-by: default avatarTianchen Ding <dtcccc@linux.alibaba.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot's avatarVincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20250303105241.17251-2-xuewen.yan@unisoc.com
parent 676e8cf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment