]> Gentwo Git Trees - 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)
@@ -110,8 +110,6 @@ lt9611_3v3: lt9611-3v3 {
 
        thermal-zones {
                conn-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150b_adc_tm 0>;
 
                        trips {
@@ -124,8 +122,6 @@ active-config0 {
                };
 
                pm8150l-pcb-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 1>;
 
                        trips {
@@ -138,8 +134,6 @@ active-config0 {
                };
 
                skin-msm-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 0>;
 
                        trips {
@@ -152,8 +146,6 @@ active-config0 {
                };
 
                wifi-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 1>;
 
                        trips {
@@ -166,8 +158,6 @@ active-config0 {
                };
 
                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 @@ chosen {
 
        thermal-zones {
                camera-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 0>;
 
                        trips {
@@ -67,8 +65,6 @@ active-config0 {
                };
 
                conn-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150b_adc_tm 0>;
 
                        trips {
@@ -81,8 +77,6 @@ active-config0 {
                };
 
                mmw-pa1-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 2>;
 
                        trips {
@@ -95,8 +89,6 @@ active-config0 {
                };
 
                mmw-pa2-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 2>;
 
                        trips {
@@ -109,8 +101,6 @@ active-config0 {
                };
 
                skin-msm-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150l_adc_tm 1>;
 
                        trips {
@@ -123,8 +113,6 @@ active-config0 {
                };
 
                skin-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 1>;
 
                        trips {
@@ -137,8 +125,6 @@ active-config0 {
                };
 
                xo-thermal {
-                       polling-delay-passive = <0>;
-                       polling-delay = <0>;
                        thermal-sensors = <&pm8150_adc_tm 0>;
 
                        trips {
index f3f9dea0550b740289b436e851f34cfa25ab83c0..3bd7d6cd1b7c63bdd7a000260a293ac48a499530 100644 (file)
@@ -6299,7 +6299,6 @@ timer {
        thermal-zones {
                cpu0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 1>;
 
@@ -6343,7 +6342,6 @@ map1 {
 
                cpu1-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 2>;
 
@@ -6387,7 +6385,6 @@ map1 {
 
                cpu2-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 3>;
 
@@ -6431,7 +6428,6 @@ map1 {
 
                cpu3-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 4>;
 
@@ -6475,7 +6471,6 @@ map1 {
 
                cpu4-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 7>;
 
@@ -6519,7 +6514,6 @@ map1 {
 
                cpu5-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 8>;
 
@@ -6563,7 +6557,6 @@ map1 {
 
                cpu6-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 9>;
 
@@ -6607,7 +6600,6 @@ map1 {
 
                cpu7-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 10>;
 
@@ -6651,7 +6643,6 @@ map1 {
 
                cpu4-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 11>;
 
@@ -6695,7 +6686,6 @@ map1 {
 
                cpu5-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 12>;
 
@@ -6739,7 +6729,6 @@ map1 {
 
                cpu6-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 13>;
 
@@ -6783,7 +6772,6 @@ map1 {
 
                cpu7-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 14>;
 
@@ -6827,7 +6815,6 @@ map1 {
 
                aoss0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 0>;
 
@@ -6842,7 +6829,6 @@ aoss0_alert0: trip-point0 {
 
                cluster0-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 5>;
 
@@ -6862,7 +6848,6 @@ cluster0_crit: cluster0-crit {
 
                cluster1-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 6>;
 
@@ -6882,7 +6867,6 @@ cluster1_crit: cluster1-crit {
 
                gpu-top-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 15>;
 
@@ -6904,7 +6888,6 @@ gpu_top_alert0: trip-point0 {
 
                aoss1-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 0>;
 
@@ -6919,7 +6902,6 @@ aoss1_alert0: trip-point0 {
 
                wlan-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 1>;
 
@@ -6934,7 +6916,6 @@ wlan_alert0: trip-point0 {
 
                video-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 2>;
 
@@ -6949,7 +6930,6 @@ video_alert0: trip-point0 {
 
                mem-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 3>;
 
@@ -6964,7 +6944,6 @@ mem_alert0: trip-point0 {
 
                q6-hvx-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 4>;
 
@@ -6979,7 +6958,6 @@ q6_hvx_alert0: trip-point0 {
 
                camera-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 5>;
 
@@ -6994,7 +6972,6 @@ camera_alert0: trip-point0 {
 
                compute-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 6>;
 
@@ -7009,7 +6986,6 @@ compute_alert0: trip-point0 {
 
                npu-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 7>;
 
@@ -7024,7 +7000,6 @@ npu_alert0: trip-point0 {
 
                gpu-bottom-thermal {
                        polling-delay-passive = <250>;
-                       polling-delay = <1000>;
 
                        thermal-sensors = <&tsens1 8>;