[tip:,sched/core] sched/doc: Update documentation after renames and synchronize Chinese version

Message ID 170101271629.398.13171090108678818524.tip-bot2@tip-bot2
State New
Headers
Series [tip:,sched/core] sched/doc: Update documentation after renames and synchronize Chinese version |

Commit Message

tip-bot2 for Thomas Gleixner Nov. 26, 2023, 3:31 p.m. UTC
  The following commit has been merged into the sched/core branch of tip:

Commit-ID:     0257e5a3c26b3810831359d39c0821397af8bf29
Gitweb:        https://git.kernel.org/tip/0257e5a3c26b3810831359d39c0821397af8bf29
Author:        Wenyu Huang <huangwenyu5@huawei.com>
AuthorDate:    Sat, 25 Nov 2023 02:05:27 
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Sun, 26 Nov 2023 16:24:48 +01:00

sched/doc: Update documentation after renames and synchronize Chinese version

Update the documentation after these changes, which didn't entirely
propagate the changes:

 e23edc86b09d ("sched/fair: Rename check_preempt_curr() to wakeup_preempt()")
 03b7fad167ef ("sched: Add task_struct pointer to sched_class::set_curr_task")
 2f88c8e802c8 ("sched/eevdf/doc: Modify the documented knob to base_slice_ns as well")

[ mingo: Reworked the changelog. ]

Signed-off-by: Wenyu Huang <huangwenyu5@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
---
 Documentation/scheduler/sched-design-CFS.rst                    | 8 +++----
 Documentation/translations/zh_CN/scheduler/sched-design-CFS.rst | 8 +++----
 2 files changed, 8 insertions(+), 8 deletions(-)
  

Patch

diff --git a/Documentation/scheduler/sched-design-CFS.rst b/Documentation/scheduler/sched-design-CFS.rst
index f689198..6cffffe 100644
--- a/Documentation/scheduler/sched-design-CFS.rst
+++ b/Documentation/scheduler/sched-design-CFS.rst
@@ -180,7 +180,7 @@  This is the (partial) list of the hooks:
    compat_yield sysctl is turned on; in that case, it places the scheduling
    entity at the right-most end of the red-black tree.
 
- - check_preempt_curr(...)
+ - wakeup_preempt(...)
 
    This function checks if a task that entered the runnable state should
    preempt the currently running task.
@@ -189,10 +189,10 @@  This is the (partial) list of the hooks:
 
    This function chooses the most appropriate task eligible to run next.
 
- - set_curr_task(...)
+ - set_next_task(...)
 
-   This function is called when a task changes its scheduling class or changes
-   its task group.
+   This function is called when a task changes its scheduling class, changes
+   its task group or is scheduled.
 
  - task_tick(...)
 
diff --git a/Documentation/translations/zh_CN/scheduler/sched-design-CFS.rst b/Documentation/translations/zh_CN/scheduler/sched-design-CFS.rst
index 3076402..abc6709 100644
--- a/Documentation/translations/zh_CN/scheduler/sched-design-CFS.rst
+++ b/Documentation/translations/zh_CN/scheduler/sched-design-CFS.rst
@@ -80,7 +80,7 @@  p->se.vruntime。一旦p->se.vruntime变得足够大,其它的任务将成为�
 CFS使用纳秒粒度的计时,不依赖于任何jiffies或HZ的细节。因此CFS并不像之前的调度器那样
 有“时间片”的概念,也没有任何启发式的设计。唯一可调的参数(你需要打开CONFIG_SCHED_DEBUG)是:
 
-   /sys/kernel/debug/sched/min_granularity_ns
+   /sys/kernel/debug/sched/base_slice_ns
 
 它可以用来将调度器从“桌面”模式(也就是低时延)调节为“服务器”(也就是高批处理)模式。
 它的默认设置是适合桌面的工作负载。SCHED_BATCH也被CFS调度器模块处理。
@@ -147,7 +147,7 @@  array)。
    这个函数的行为基本上是出队,紧接着入队,除非compat_yield sysctl被开启。在那种情况下,
    它将调度实体放在红黑树的最右端。
 
- - check_preempt_curr(...)
+ - wakeup_preempt(...)
 
    这个函数检查进入可运行状态的任务能否抢占当前正在运行的任务。
 
@@ -155,9 +155,9 @@  array)。
 
    这个函数选择接下来最适合运行的任务。
 
- - set_curr_task(...)
+ - set_next_task(...)
 
-   这个函数在任务改变调度类或改变任务组时被调用。
+   这个函数在任务改变调度类,改变任务组时,或者任务被调度时被调用。
 
  - task_tick(...)