thermal: core: Relocate critical and hot trip handling
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2024 17:44:34 +0000 (19:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Apr 2024 18:42:39 +0000 (20:42 +0200)
commit2ae0998c672ccf3bb1c480a5aca104ac8a98a287
tree90291792d30706ed70db8fef2b2210e8d7a03b4e
parentad2f8bccd0e6e65af4e771e69cc2f2cfa69a6e07
thermal: core: Relocate critical and hot trip handling

Modify handle_thermal_trip() to call handle_critical_trips() only after
finding that the trip temperature has been crossed on the way up and
remove the redundant temperature check from the latter.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_core.c