Skip to content

Commit 5d89176

Browse files
Song ShuaiJonathan Corbet
authored andcommitted
sched/doc: supplement CPU capacity with RISC-V
This commit 7d20783 ("dt-bindings: arm: move cpu-capacity to a shared loation") updates some references about capacity-dmips-mhz property in this document. The list of architectures using capacity-dmips-mhz omits RISC-V, so supplements it here. Signed-off-by: Song Shuai <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> # English Acked-by: Palmer Dabbelt <[email protected]> Reviewed-by: Alex Shi <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent fe15c26 commit 5d89176

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/scheduler/sched-capacity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Linux cannot currently figure out CPU capacity on its own, this information thus
258258
needs to be handed to it. Architectures must define arch_scale_cpu_capacity()
259259
for that purpose.
260260

261-
The arm and arm64 architectures directly map this to the arch_topology driver
261+
The arm, arm64, and RISC-V architectures directly map this to the arch_topology driver
262262
CPU scaling data, which is derived from the capacity-dmips-mhz CPU binding; see
263263
Documentation/devicetree/bindings/cpu/cpu-capacity.txt.
264264

Documentation/translations/zh_CN/scheduler/sched-capacity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ CFS调度类基于实体负载跟踪机制(Per-Entity Load Tracking, PELT)
231231
当前,Linux无法凭自身算出CPU算力,因此必须要有把这个信息传递给Linux的方式。每个架构必须为此
232232
定义arch_scale_cpu_capacity()函数。
233233

234-
arm和arm64架构直接把这个信息映射到arch_topology驱动的CPU scaling数据中(译注:参考
234+
arm、arm64和RISC-V架构直接把这个信息映射到arch_topology驱动的CPU scaling数据中(译注:参考
235235
arch_topology.h的percpu变量cpu_scale),它是从capacity-dmips-mhz CPU binding中衍生计算
236236
出来的。参见Documentation/devicetree/bindings/cpu/cpu-capacity.txt。
237237

0 commit comments

Comments
 (0)