]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: qcom: sm8250-*: Remove thermal zone polling delays
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 10 May 2024 11:59:50 +0000 (13:59 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 7 Jun 2024 23:03:44 +0000 (18:03 -0500)
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-27-436ca4218da2@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
arch/arm64/boot/dts/qcom/sm8250-mtp.dts
arch/arm64/boot/dts/qcom/sm8250.dtsi

index c52357214de5e1444391190c1378d2c071c48473..f22821c133672cda7d8cee2d3c02a7b989f19f88 100644 (file)
 
        thermal-zones {
                conn-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150b_adc_tm 0>;
 
                        trips {
                };
 
                pm8150l-pcb-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 1>;
 
                        trips {
                };
 
                skin-msm-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 0>;
 
                        trips {
                };
 
                wifi-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 1>;
 
                        trips {
                };
 
                xo-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 0>;
 
                        trips {
index 7ef99038cb37ba44b1e7f94397e551450331ad85..21b2ca1def8363cbaf7857215f42ff8492a8f7fa 100644 (file)
@@ -53,8 +53,6 @@
 
        thermal-zones {
                camera-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 0>;
 
                        trips {
@@ -67,8 +65,6 @@
                };
 
                conn-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150b_adc_tm 0>;
 
                        trips {
@@ -81,8 +77,6 @@
                };
 
                mmw-pa1-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 2>;
 
                        trips {
@@ -95,8 +89,6 @@
                };
 
                mmw-pa2-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 2>;
 
                        trips {
                };
 
                skin-msm-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 1>;
 
                        trips {
                };
 
                skin-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 1>;
 
                        trips {
                };
 
                xo-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 0>;
 
                        trips {
index f3f9dea0550b740289b436e851f34cfa25ab83c0..3bd7d6cd1b7c63bdd7a000260a293ac48a499530 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-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 7>;
 
 
                cpu5-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 8>;
 
 
                cpu6-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 9>;
 
 
                cpu7-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 10>;
 
 
                cpu4-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 11>;
 
 
                cpu5-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 12>;
 
 
                cpu6-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 13>;
 
 
                cpu7-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 14>;
 
 
                aoss0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 0>;
 
 
                cluster0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 5>;
 
 
                cluster1-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 6>;
 
 
                gpu-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 15>;
 
 
                aoss1-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 0>;
 
 
                wlan-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 1>;
 
 
                video-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 2>;
 
 
                mem-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 3>;
 
 
                q6-hvx-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 4>;
 
 
                camera-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 5>;
 
 
                compute-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 6>;
 
 
                npu-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 7>;
 
 
                gpu-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 8>;