[PATCH 21/31] arm64: dts: qcom: sdm845-*: Remove thermal zone polling delays
From: Konrad Dybcio
Date: Tue Mar 19 2024 - 12:19:11 EST
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@xxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 12 -------
arch/arm64/boot/dts/qcom/sdm845.dtsi | 63 ---------------------------------
2 files changed, 75 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
index 76bfa786612c..2391f842c903 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
@@ -51,9 +51,6 @@ vreg_s4a_1p8: pm8998-smps4 {
thermal-zones {
xo_thermal: xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 1>;
trips {
@@ -66,9 +63,6 @@ trip-point {
};
msm_thermal: msm-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 2>;
trips {
@@ -81,9 +75,6 @@ trip-point {
};
pa_thermal: pa-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 3>;
trips {
@@ -96,9 +87,6 @@ trip-point {
};
quiet_thermal: quiet-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 4>;
trips {
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index 2f20be99ee7e..ef05e3506d54 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -5337,9 +5337,6 @@ sound: sound {
thermal-zones {
cpu0-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 1>;
trips {
@@ -5364,9 +5361,6 @@ cpu0_crit: cpu-crit {
};
cpu1-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 2>;
trips {
@@ -5391,9 +5385,6 @@ cpu1_crit: cpu-crit {
};
cpu2-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 3>;
trips {
@@ -5418,9 +5409,6 @@ cpu2_crit: cpu-crit {
};
cpu3-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 4>;
trips {
@@ -5445,9 +5433,6 @@ cpu3_crit: cpu-crit {
};
cpu4-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 7>;
trips {
@@ -5472,9 +5457,6 @@ cpu4_crit: cpu-crit {
};
cpu5-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 8>;
trips {
@@ -5499,9 +5481,6 @@ cpu5_crit: cpu-crit {
};
cpu6-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 9>;
trips {
@@ -5526,9 +5505,6 @@ cpu6_crit: cpu-crit {
};
cpu7-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 10>;
trips {
@@ -5553,9 +5529,6 @@ cpu7_crit: cpu-crit {
};
aoss0-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 0>;
trips {
@@ -5568,9 +5541,6 @@ aoss0_alert0: trip-point0 {
};
cluster0-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 5>;
trips {
@@ -5588,9 +5558,6 @@ cluster0_crit: cluster0-crit {
};
cluster1-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 6>;
trips {
@@ -5608,9 +5575,6 @@ cluster1_crit: cluster1-crit {
};
gpu-top-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 11>;
cooling-maps {
@@ -5630,9 +5594,6 @@ gpu_top_alert0: trip-point0 {
};
gpu-bottom-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens0 12>;
cooling-maps {
@@ -5652,9 +5613,6 @@ gpu_bottom_alert0: trip-point0 {
};
aoss1-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 0>;
trips {
@@ -5667,9 +5625,6 @@ aoss1_alert0: trip-point0 {
};
q6-modem-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 1>;
trips {
@@ -5682,9 +5637,6 @@ q6_modem_alert0: trip-point0 {
};
mem-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 2>;
trips {
@@ -5697,9 +5649,6 @@ mem_alert0: trip-point0 {
};
wlan-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 3>;
trips {
@@ -5712,9 +5661,6 @@ wlan_alert0: trip-point0 {
};
q6-hvx-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 4>;
trips {
@@ -5727,9 +5673,6 @@ q6_hvx_alert0: trip-point0 {
};
camera-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 5>;
trips {
@@ -5742,9 +5685,6 @@ camera_alert0: trip-point0 {
};
video-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 6>;
trips {
@@ -5757,9 +5697,6 @@ video_alert0: trip-point0 {
};
modem-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
-
thermal-sensors = <&tsens1 7>;
trips {
--
2.40.1