diff options
author | 2025-03-03 18:52:39 +0800 | |
---|---|---|
committer | 2025-05-21 13:57:37 +0200 | |
commit | aa3ee4f0b7541382c9f6f43f7408d73a5d4f4042 (patch) | |
tree | d299652f5cb375ffacc5aedbf451c8bf3efde80a /scripts/lib/kdoc/kdoc_output.py | |
parent | sched,livepatch: Untangle cond_resched() and live-patching (diff) | |
download | linux-rng-aa3ee4f0b7541382c9f6f43f7408d73a5d4f4042.tar.xz linux-rng-aa3ee4f0b7541382c9f6f43f7408d73a5d4f4042.zip |
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: 152e11f6df29 ("sched/fair: Implement delayed dequeue")
Signed-off-by: Xuewen Yan <xuewen.yan@unisoc.com>
Reviewed-and-tested-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20250303105241.17251-2-xuewen.yan@unisoc.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions