]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: gov_power_allocator: Set up trip points earlier
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 25 Oct 2023 19:22:20 +0000 (20:22 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Nov 2023 15:02:13 +0000 (16:02 +0100)
commite83747c2f8e3cc5e284e37a8921099f1901d79d8
tree261dc8a3fcc173ca64bc13f7a6c1859ddba6e5ed
parent4e6d4687f7645e3b4a83d915974e8749c24bf2e2
thermal: gov_power_allocator: Set up trip points earlier

Set up the trip points at the beginning of the binding function.

This simplifies the code a bit and allows for further cleanups.

Also add a check to fail the binding if the last passive trip point is
not found.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/gov_power_allocator.c