summaryrefslogtreecommitdiff
path: root/Documentation/scheduler
diff options
context:
space:
mode:
authorfangqiurong <fangqiurong@kylinos.cn>2026-04-03 13:58:06 +0800
committerJonathan Corbet <corbet@lwn.net>2026-04-09 08:26:38 -0600
commit1cc973b7c94a77bd3419bca847bbf19b5cfdfa4c (patch)
tree892fdd0b99af55108e98891c21c985cae65a3eb3 /Documentation/scheduler
parentba716ad46d251528562fdd65cad8ce0b09853bd2 (diff)
downloadlinux-next-1cc973b7c94a77bd3419bca847bbf19b5cfdfa4c.tar.gz
linux-next-1cc973b7c94a77bd3419bca847bbf19b5cfdfa4c.zip
sched/doc: Update yield_task description in sched-design-CFS
The yield_task description referenced the long-removed compat_yield sysctl and described the function as a dequeue/enqueue cycle. Update it to reflect current behavior: yielding the CPU by moving the current task's position back in the runqueue. Sync zh_CN and sp_SP translations. Signed-off-by: fangqiurong <fangqiurong@kylinos.cn> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260403055806.358921-1-user@fqr-pc>
Diffstat (limited to 'Documentation/scheduler')
-rw-r--r--Documentation/scheduler/sched-design-CFS.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/scheduler/sched-design-CFS.rst b/Documentation/scheduler/sched-design-CFS.rst
index b574a2644c77..03998f6c8f9c 100644
--- a/Documentation/scheduler/sched-design-CFS.rst
+++ b/Documentation/scheduler/sched-design-CFS.rst
@@ -183,9 +183,8 @@ This is the (partial) list of the hooks:
- yield_task(...)
- This function is basically just a dequeue followed by an enqueue, unless the
- compat_yield sysctl is turned on; in that case, it places the scheduling
- entity at the right-most end of the red-black tree.
+ This function yields the CPU by moving the currently running task's position back
+ in the runqueue, so that other runnable tasks get scheduled first.
- wakeup_preempt(...)