thermal: gov_bang_bang: Use .trip_crossed() instead of .throttle()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2024 16:04:39 +0000 (18:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Apr 2024 18:37:41 +0000 (20:37 +0200)
commit530c932bdf753a58cb29ba9eb39d9514458f9073
tree12e3bb30fbc3291d84c1d921082404cb3bc57e80
parent80f5fd45c764816fe9dbe8e94bd2677b4a8a3f4d
thermal: gov_bang_bang: Use .trip_crossed() instead of .throttle()

The Bang-Bang governor really is only concerned about trip point
crossing, so it can use the new .trip_crossed() callback instead of
.throttle() that is not particularly suitable for it.

Modify it to do so which also takes trip hysteresis into account, so the
governor does not need to use it directly any more.

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/gov_bang_bang.c