mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	cros-qcom-dts-watchers@chromium.org,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: [PATCH v2 28/31] arm64: dts: qcom: sm8350-*: Remove thermal zone polling delays
Date: Fri, 10 May 2024 13:59:51 +0200	[thread overview]
Message-ID: <20240510-topic-msm-polling-cleanup-v2-28-436ca4218da2@linaro.org> (raw)
In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org>

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>
---
 arch/arm64/boot/dts/qcom/pm8350.dtsi  |  2 +-
 arch/arm64/boot/dts/qcom/pm8350b.dtsi |  2 +-
 arch/arm64/boot/dts/qcom/pm8350c.dtsi |  2 +-
 arch/arm64/boot/dts/qcom/pmr735a.dtsi |  2 +-
 arch/arm64/boot/dts/qcom/pmr735b.dtsi |  2 +-
 arch/arm64/boot/dts/qcom/sm8350.dtsi  | 29 -----------------------------
 6 files changed, 5 insertions(+), 34 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/pm8350.dtsi b/arch/arm64/boot/dts/qcom/pm8350.dtsi
index 9ed9ba23e81e..cb55b23688d6 100644
--- a/arch/arm64/boot/dts/qcom/pm8350.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8350.dtsi
@@ -10,7 +10,7 @@ / {
 	thermal-zones {
 		pm8350_thermal: pm8350-thermal {
 			polling-delay-passive = <100>;
-			polling-delay = <0>;
+
 			thermal-sensors = <&pm8350_temp_alarm>;
 
 			trips {
diff --git a/arch/arm64/boot/dts/qcom/pm8350b.dtsi b/arch/arm64/boot/dts/qcom/pm8350b.dtsi
index 05c105898892..cf82f8a64a9b 100644
--- a/arch/arm64/boot/dts/qcom/pm8350b.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8350b.dtsi
@@ -10,7 +10,7 @@ / {
 	thermal-zones {
 		pm8350b_thermal: pm8350b-thermal {
 			polling-delay-passive = <100>;
-			polling-delay = <0>;
+
 			thermal-sensors = <&pm8350b_temp_alarm>;
 
 			trips {
diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi
index aa74e21fe0dc..1a24e6439e36 100644
--- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi
@@ -48,7 +48,7 @@ / {
 	thermal-zones {
 		pm8350c_thermal: pm8350c-thermal {
 			polling-delay-passive = <100>;
-			polling-delay = <0>;
+
 			thermal-sensors = <&pm8350c_temp_alarm>;
 
 			trips {
diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qcom/pmr735a.dtsi
index febda50779f9..f8efd8e5e68f 100644
--- a/arch/arm64/boot/dts/qcom/pmr735a.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmr735a.dtsi
@@ -36,7 +36,7 @@ / {
 	thermal-zones {
 		pmr735a_thermal: pmr735a-thermal {
 			polling-delay-passive = <100>;
-			polling-delay = <0>;
+
 			thermal-sensors = <&pmr735a_temp_alarm>;
 
 			trips {
diff --git a/arch/arm64/boot/dts/qcom/pmr735b.dtsi b/arch/arm64/boot/dts/qcom/pmr735b.dtsi
index f7473e247322..09affc05b397 100644
--- a/arch/arm64/boot/dts/qcom/pmr735b.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmr735b.dtsi
@@ -10,7 +10,7 @@ / {
 	thermal-zones {
 		pmr735b_thermal: pmr735b-thermal {
 			polling-delay-passive = <100>;
-			polling-delay = <0>;
+
 			thermal-sensors = <&pmr735b_temp_alarm>;
 
 			trips {
diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
index f7c4700f00c3..526d3c92eae8 100644
--- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
@@ -3665,7 +3665,6 @@ compute-cb@8 {
 	thermal_zones: thermal-zones {
 		cpu0-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 1>;
 
@@ -3709,7 +3708,6 @@ map1 {
 
 		cpu1-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 2>;
 
@@ -3753,7 +3751,6 @@ map1 {
 
 		cpu2-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 3>;
 
@@ -3797,7 +3794,6 @@ map1 {
 
 		cpu3-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 4>;
 
@@ -3841,7 +3837,6 @@ map1 {
 
 		cpu4-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 7>;
 
@@ -3885,7 +3880,6 @@ map1 {
 
 		cpu5-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 8>;
 
@@ -3929,7 +3923,6 @@ map1 {
 
 		cpu6-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 9>;
 
@@ -3973,7 +3966,6 @@ map1 {
 
 		cpu7-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 10>;
 
@@ -4017,7 +4009,6 @@ map1 {
 
 		cpu4-bottom-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 11>;
 
@@ -4061,7 +4052,6 @@ map1 {
 
 		cpu5-bottom-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 12>;
 
@@ -4105,7 +4095,6 @@ map1 {
 
 		cpu6-bottom-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 13>;
 
@@ -4149,7 +4138,6 @@ map1 {
 
 		cpu7-bottom-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 14>;
 
@@ -4193,7 +4181,6 @@ map1 {
 
 		aoss0-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 0>;
 
@@ -4208,7 +4195,6 @@ aoss0_alert0: trip-point0 {
 
 		cluster0-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 5>;
 
@@ -4228,7 +4214,6 @@ cluster0_crit: cluster0-crit {
 
 		cluster1-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens0 6>;
 
@@ -4248,7 +4233,6 @@ cluster1_crit: cluster1-crit {
 
 		aoss1-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 0>;
 
@@ -4263,7 +4247,6 @@ aoss1_alert0: trip-point0 {
 
 		gpu-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 1>;
 
@@ -4285,7 +4268,6 @@ gpu_top_alert0: trip-point0 {
 
 		gpu-bottom-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 2>;
 
@@ -4307,7 +4289,6 @@ gpu_bottom_alert0: trip-point0 {
 
 		nspss1-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 3>;
 
@@ -4322,7 +4303,6 @@ nspss1_alert0: trip-point0 {
 
 		nspss2-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 4>;
 
@@ -4337,7 +4317,6 @@ nspss2_alert0: trip-point0 {
 
 		nspss3-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 5>;
 
@@ -4352,7 +4331,6 @@ nspss3_alert0: trip-point0 {
 
 		video-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 6>;
 
@@ -4367,7 +4345,6 @@ video_alert0: trip-point0 {
 
 		mem-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 7>;
 
@@ -4382,7 +4359,6 @@ mem_alert0: trip-point0 {
 
 		modem1-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 8>;
 
@@ -4397,7 +4373,6 @@ modem1_alert0: trip-point0 {
 
 		modem2-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 9>;
 
@@ -4412,7 +4387,6 @@ modem2_alert0: trip-point0 {
 
 		modem3-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 10>;
 
@@ -4427,7 +4401,6 @@ modem3_alert0: trip-point0 {
 
 		modem4-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 11>;
 
@@ -4442,7 +4415,6 @@ modem4_alert0: trip-point0 {
 
 		camera-top-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 12>;
 
@@ -4457,7 +4429,6 @@ camera1_alert0: trip-point0 {
 
 		cam-bottom-thermal {
 			polling-delay-passive = <250>;
-			polling-delay = <1000>;
 
 			thermal-sensors = <&tsens1 13>;
 

-- 
2.40.1


  parent reply	other threads:[~2024-05-10 12:00 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 11:59 [PATCH v2 00/31] Clean up thermal zone polling-delay Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 01/31] arm64: dts: qcom: ipq6018-*: Remove thermal zone polling delays Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 02/31] arm64: dts: qcom: ipq8074-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 03/31] arm64: dts: qcom: ipq9574-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 04/31] arm64: dts: qcom: msm8916-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 05/31] arm64: dts: qcom: msm8939-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 06/31] arm64: dts: qcom: msm8953-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 07/31] arm64: dts: qcom: msm8976-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 08/31] arm64: dts: qcom: msm8996-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 09/31] arm64: dts: qcom: msm8998-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 10/31] arm64: dts: qcom: pm7550ba: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 11/31] arm64: dts: qcom: pms405: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 12/31] arm64: dts: qcom: pmx75: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 13/31] arm64: dts: qcom: qcm2290-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 14/31] arm64: dts: qcom: qcs404-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 15/31] arm64: dts: qcom: sa8775p-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 16/31] arm64: dts: qcom: sc7180-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 17/31] arm64: dts: qcom: sc7280-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 18/31] arm64: dts: qcom: sc8180x-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 19/31] arm64: dts: qcom: sc8280xp-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 20/31] arm64: dts: qcom: sdm660-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 21/31] arm64: dts: qcom: sdm845-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 22/31] arm64: dts: qcom: sm6115-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 23/31] arm64: dts: qcom: sm6125-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 24/31] arm64: dts: qcom: sm6350-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 25/31] arm64: dts: qcom: sm6375-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 26/31] arm64: dts: qcom: sm8150-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 27/31] arm64: dts: qcom: sm8250-*: " Konrad Dybcio
2024-05-10 11:59 ` Konrad Dybcio [this message]
2024-05-10 11:59 ` [PATCH v2 29/31] arm64: dts: qcom: sm8450-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 30/31] arm64: dts: qcom: sm8550-*: " Konrad Dybcio
2024-05-10 11:59 ` [PATCH v2 31/31] arm64: dts: qcom: sm8650-*: " Konrad Dybcio
2024-05-10 12:47   ` Bryan O'Donoghue
2024-06-06 10:50     ` Konrad Dybcio
2024-05-10 12:49 ` [PATCH v2 00/31] Clean up thermal zone polling-delay Bryan O'Donoghue
2024-06-06 10:50   ` Konrad Dybcio
2024-06-08 16:11 ` Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240510-topic-msm-polling-cleanup-v2-28-436ca4218da2@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=cros-qcom-dts-watchers@chromium.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®