thermal: core: Introduce thermal_trip_crossed()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 May 2024 16:00:14 +0000 (18:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 May 2024 11:00:00 +0000 (13:00 +0200)
commitcb573eec609c44f44b27c2fa07afd926eddc9f89
tree7660ead1ca9dcdf64a902464c1a7f6e11e9668f4
parent5a599e10e53d1914adf0032c730bc0f604a5d947
thermal: core: Introduce thermal_trip_crossed()

Add a helper function called thermal_trip_crossed() to be invoked by
__thermal_zone_device_update() in order to notify user space, the
thermal debug code and the zone governor about trip crossing.

Subsequently, this will also be used in the case when a trip point
becomes invalid after being crossed on the way up.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c