thermal: gov_bang_bang: Call __thermal_cdev_update() directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Aug 2024 14:25:19 +0000 (16:25 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Aug 2024 11:13:33 +0000 (13:13 +0200)
commitb9b6ee6fe258ce4d89592593efcd3d798c418859
tree02e98c0f8f546a67459ae01497dbf5d588f3eab6
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
thermal: gov_bang_bang: Call __thermal_cdev_update() directly

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@intel.com>
Acked-by: Peter Kästle <peter@piie.net>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Cc: 6.10+ <stable@vger.kernel.org> # 6.10+
Link: https://patch.msgid.link/13583081.uLZWGnKmhe@rjwysocki.net
drivers/thermal/gov_bang_bang.c