Skip to content

Commit 34c7685

Browse files
committed
Merge tag 'devicetree-fixes-for-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull Devicetree fixes from Rob Herring: - fix cpu node iterator for powerpc systems - clarify ARM CPU binding 'capacities-dmips-mhz' property calculations * tag 'devicetree-fixes-for-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: of: Fix cpu node iterator to not ignore disabled cpu nodes dt-bindings: arm: Explain capacities-dmips-mhz calculations in example
2 parents b5b1de3 + c961cb3 commit 34c7685

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎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>;

‎drivers/of/base.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,6 @@ struct device_node *of_get_next_cpu_node(struct device_node *prev)
777777
if (!(of_node_name_eq(next, "cpu") ||
778778
(next->type && !of_node_cmp(next->type, "cpu"))))
779779
continue;
780-
if (!__of_device_is_available(next))
781-
continue;
782780
if (of_node_get(next))
783781
break;
784782
}

0 commit comments

Comments
 (0)