ARM: dts: ls1021a: Add all CPUs in cooling maps
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 16 Nov 2018 10:01:11 +0000 (15:31 +0530)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:02:24 +0000 (10:02 +0800)
Each CPU can (and does) participate in cooling down the system but the
DT only captures a handful of them, normally CPU0, in the cooling maps.
Things work by chance currently as under normal circumstances its the
first CPU of each cluster which is used by the operating systems to
probe the cooling devices. But as soon as this CPU ordering changes and
any other CPU is used to bring up the cooling device, we will start
seeing failures.

Also the DT is rather incomplete when we list only one CPU in the
cooling maps, as the hardware doesn't have any such limitations.

Update cooling maps to include all devices affected by individual trip
points.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/ls1021a.dtsi

index fc9831b902679df2c077ef036eba78ea8f349e12..29baacbccb3f1151f183921d789a708820e92184 100644 (file)
                                                trip = <&cpu_alert>;
                                                cooling-device =
                                                        <&cpu0 THERMAL_NO_LIMIT
+                                                       THERMAL_NO_LIMIT>,
+                                                       <&cpu1 THERMAL_NO_LIMIT
                                                        THERMAL_NO_LIMIT>;
                                        };
                                };