]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Prepare for moving trips between sorted lists
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Oct 2024 11:24:57 +0000 (13:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Oct 2024 15:15:06 +0000 (17:15 +0200)
commitca70d55ab0aa4510618ebf6bc5f5da5dd33736d5
tree534a353e21de9e61998afcd9252aa383e1703bb5
parentbd32eacd955a9e5f6de9e3a168882c3ca2525d73
thermal: core: Prepare for moving trips between sorted lists

Subsequently, trips will be moved between sorted lists in multiple
places, so replace add_trip_to_sorted_list() with an analogous
function, move_trip_to_sorted_list(), that will move a given trip
to a given sorted list.

To allow list_del() used in the new function to work, initialize the
list_node fields in trip descriptors where applicable so they are
always valid.

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/2960197.e9J7NaK4W3@rjwysocki.net
drivers/thermal/thermal_core.c