Skip to content

Commit 204c881

Browse files
vireshkrobherring
authored andcommitted
dt-bindings: arm: Explain capacities-dmips-mhz calculations in example
The example contains two values for the capacity currently, 446 in text and 578 in code. The numbers are all correct but can confuse some of the readers. This patch tries to explain how the numbers are calculated to avoid same confusion going forward. Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent d061864 commit 204c881

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Documentation/devicetree/bindings/arm/cpu-capacity.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ mhz values (normalized w.r.t. the highest value found while parsing the DT).
5959
===========================================
6060

6161
Example 1 (ARM 64-bit, 6-cpu system, two clusters):
62-
capacities-dmips-mhz are scaled w.r.t. 1024 (cpu@0 and cpu@1)
63-
supposing cluster0@max-freq=1100 and custer1@max-freq=850,
64-
final capacities are 1024 for cluster0 and 446 for cluster1
62+
The capacities-dmips-mhz or DMIPS/MHz values (scaled to 1024)
63+
are 1024 and 578 for cluster0 and cluster1. Further normalization
64+
is done by the operating system based on cluster0@max-freq=1100 and
65+
custer1@max-freq=850, final capacities are 1024 for cluster0 and
66+
446 for cluster1 (576*850/1100).
6567

6668
cpus {
6769
#address-cells = <2>;

0 commit comments

Comments
 (0)