thermal: gov_bang_bang: Call __thermal_cdev_update() directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

commit b9b6ee6fe258ce4d89592593efcd3d798c418859 upstream.

Instead of clearing the "updated" flag for each cooling device
affected by the trip point crossing in bang_bang_control() and
walking all thermal instances to run thermal_cdev_update() for all
of the affected cooling devices, call __thermal_cdev_update()
directly for each of them.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
Acked-by: Peter Kästle <peter@xxxxxxxx>
Reviewed-by: Zhang Rui <rui.zhang@xxxxxxxxx>
Cc: 6.10+ <stable@xxxxxxxxxxxxxxx> # 6.10+
Link: https://patch.msgid.link/13583081.uLZWGnKmhe@xxxxxxxxxxxxx
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/thermal/gov_bang_bang.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/drivers/thermal/gov_bang_bang.c
+++ b/drivers/thermal/gov_bang_bang.c
@@ -79,12 +79,9 @@ static void bang_bang_control(struct the
 		dev_dbg(&instance->cdev->device, "target=%ld\n", instance->target);
 
 		mutex_lock(&instance->cdev->lock);
-		instance->cdev->updated = false; /* cdev needs update */
+		__thermal_cdev_update(instance->cdev);
 		mutex_unlock(&instance->cdev->lock);
 	}
-
-	list_for_each_entry(instance, &tz->thermal_instances, tz_node)
-		thermal_cdev_update(instance->cdev);
 }
 
 static struct thermal_governor thermal_gov_bang_bang = {


Patches currently in stable-queue which might be from rafael.j.wysocki@xxxxxxxxx are

queue-6.10/acpi-ec-evaluate-_reg-outside-the-ec-scope-more-carefully.patch
queue-6.10/revert-acpi-ec-evaluate-orphan-_reg-under-ec-device.patch
queue-6.10/thermal-gov_bang_bang-call-__thermal_cdev_update-directly.patch
queue-6.10/acpica-add-a-depth-argument-to-acpi_execute_reg_methods.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux