Skip to content

Commit 0257e5a

Browse files
Wenyu Huangingomolnar
authored andcommitted
sched/doc: Update documentation after renames and synchronize Chinese version
Update the documentation after these changes, which didn't entirely propagate the changes: e23edc8 ("sched/fair: Rename check_preempt_curr() to wakeup_preempt()") 03b7fad ("sched: Add task_struct pointer to sched_class::set_curr_task") 2f88c8e ("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
1 parent f125607 commit 0257e5a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Documentation/scheduler/sched-design-CFS.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ This is the (partial) list of the hooks:
180180
compat_yield sysctl is turned on; in that case, it places the scheduling
181181
entity at the right-most end of the red-black tree.
182182

183-
- check_preempt_curr(...)
183+
- wakeup_preempt(...)
184184

185185
This function checks if a task that entered the runnable state should
186186
preempt the currently running task.
@@ -189,10 +189,10 @@ This is the (partial) list of the hooks:
189189

190190
This function chooses the most appropriate task eligible to run next.
191191

192-
- set_curr_task(...)
192+
- set_next_task(...)
193193

194-
This function is called when a task changes its scheduling class or changes
195-
its task group.
194+
This function is called when a task changes its scheduling class, changes
195+
its task group or is scheduled.
196196

197197
- task_tick(...)
198198

Documentation/translations/zh_CN/scheduler/sched-design-CFS.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ p->se.vruntime。一旦p->se.vruntime变得足够大,其它的任务将成为
8080
CFS使用纳秒粒度的计时,不依赖于任何jiffies或HZ的细节。因此CFS并不像之前的调度器那样
8181
有“时间片”的概念,也没有任何启发式的设计。唯一可调的参数(你需要打开CONFIG_SCHED_DEBUG)是:
8282

83-
/sys/kernel/debug/sched/min_granularity_ns
83+
/sys/kernel/debug/sched/base_slice_ns
8484

8585
它可以用来将调度器从“桌面”模式(也就是低时延)调节为“服务器”(也就是高批处理)模式。
8686
它的默认设置是适合桌面的工作负载。SCHED_BATCH也被CFS调度器模块处理。
@@ -147,17 +147,17 @@ array)。
147147
这个函数的行为基本上是出队,紧接着入队,除非compat_yield sysctl被开启。在那种情况下,
148148
它将调度实体放在红黑树的最右端。
149149

150-
- check_preempt_curr(...)
150+
- wakeup_preempt(...)
151151

152152
这个函数检查进入可运行状态的任务能否抢占当前正在运行的任务。
153153

154154
- pick_next_task(...)
155155

156156
这个函数选择接下来最适合运行的任务。
157157

158-
- set_curr_task(...)
158+
- set_next_task(...)
159159

160-
这个函数在任务改变调度类或改变任务组时被调用
160+
这个函数在任务改变调度类,改变任务组时,或者任务被调度时被调用
161161

162162
- task_tick(...)
163163

0 commit comments

Comments
 (0)