]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: sc8280xp-*: Remove thermal zone polling delays
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 10 May 2024 11:59:42 +0000 (13:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2024 06:59:19 +0000 (08:59 +0200)
[ Upstream commit e388421387e8b1b51c507883aaf13f40277fe137 ]

All of the thermal zone suppliers are interrupt-driven, remove the
bogus and unnecessary polling that only wastes CPU time.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240510-topic-msm-polling-cleanup-v2-19-436ca4218da2@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Stable-dep-of: f7fd6d04c104 ("arm64: dts: qcom: sc8280xp: Throttle the GPU when overheating")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi
arch/arm64/boot/dts/qcom/sc8280xp.dtsi

index 4bf99b6b6e5fb3c125361647779461dd87f67a43..6b759e67f4d3da9b9e954f7a9e524ad9f73bedf5 100644 (file)
        thermal-zones {
                skin-temp-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <0>;
+
                        thermal-sensors = <&pmk8280_adc_tm 5>;
 
                        trips {
index 945de77911de1ce558c500a94de8f80b7ee05d20..1e3babf2e40d80dbe196f521b2de519354b0495f 100644 (file)
@@ -14,7 +14,7 @@
        thermal-zones {
                pm8280_1_thermal: pm8280-1-thermal {
                        polling-delay-passive = <100>;
-                       polling-delay = <0>;
+
                        thermal-sensors = <&pm8280_1_temp_alarm>;
 
                        trips {
@@ -34,7 +34,7 @@
 
                pm8280_2_thermal: pm8280-2-thermal {
                        polling-delay-passive = <100>;
-                       polling-delay = <0>;
+
                        thermal-sensors = <&pm8280_2_temp_alarm>;
 
                        trips {
index 59f0a850671a31db49557bda0288f9ac04543480..de554d5d02010b738b629b6a4d2b3eb2018c102a 100644 (file)
        thermal-zones {
                cpu0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 1>;
 
 
                cpu1-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 2>;
 
 
                cpu2-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 3>;
 
 
                cpu3-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 4>;
 
 
                cpu4-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 5>;
 
 
                cpu5-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 6>;
 
 
                cpu6-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 7>;
 
 
                cpu7-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 8>;
 
 
                cluster0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 9>;
 
                };
 
                gpu-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
-
                        thermal-sensors = <&tsens2 2>;
 
                        trips {
 
                mem-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 15>;