public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal/cpufreq: increment i in cpufreq_get_requested_power()
@ 2024-05-04 11:25 Dan Carpenter
  2024-05-06  9:41 ` Lukasz Luba
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Carpenter @ 2024-05-04 11:25 UTC (permalink / raw)
  To: Lukasz Luba
  Cc: Amit Daniel Kachhap, Daniel Lezcano, Viresh Kumar,
	Rafael J. Wysocki, Zhang Rui, linux-pm, linux-kernel,
	kernel-janitors

We accidentally deleted the "i++" as part of a cleanup.  Restore it.

Fixes: 3f7ced7ac9af ("drivers/thermal/cpufreq_cooling : Refactor thermal_power_cpu_get_power tracing")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
This is based on static analysis and not tested.

 drivers/thermal/cpufreq_cooling.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/cpufreq_cooling.c b/drivers/thermal/cpufreq_cooling.c
index 280071be30b1..a074192896de 100644
--- a/drivers/thermal/cpufreq_cooling.c
+++ b/drivers/thermal/cpufreq_cooling.c
@@ -249,6 +249,7 @@ static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev,
 			load = 0;
 
 		total_load += load;
+		i++;
 	}
 
 	cpufreq_cdev->last_load = total_load;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-12-15  8:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04 11:25 [PATCH] thermal/cpufreq: increment i in cpufreq_get_requested_power() Dan Carpenter
2024-05-06  9:41 ` Lukasz Luba
2024-05-06 11:26   ` Dan Carpenter
2025-12-15  8:33   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox