]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Move some trip processing to thermal_trip_crossed()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Oct 2024 11:29:14 +0000 (13:29 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Oct 2024 15:15:07 +0000 (17:15 +0200)
commit72fb849f77d94d8f60cbb2d7251ac26de8c9e090
treebe6856eff3beca2c6abe0b237ba1f0d7ae95bbc1
parentdb0a46b60033a60d54e6a5b1e760aeda01bb116c
thermal: core: Move some trip processing to thermal_trip_crossed()

Notice that some processing related to trip point crossing carried out
in handle_thermal_trip() and thermal_zone_set_trip_temp() may as well
be done in thermal_trip_crossed(), which allows code duplication to be
reduced, so change the code accordingly.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/1982859.PYKUYFuaPT@rjwysocki.net
drivers/thermal/thermal_core.c
drivers/thermal/thermal_trip.c