[PATCH v1 00/10] thermal: core: Use lists of trips for trip crossing detection and handling
From: Rafael J. Wysocki
Date: Wed Oct 16 2024 - 07:39:16 EST
Hi Everyone,
This is a continuation of
https://lore.kernel.org/linux-pm/4985597.31r3eYUQgx@xxxxxxxxxxxxx/
derived from patches [3-7/8] in the following patch series:
https://lore.kernel.org/linux-pm/4920970.GXAFRqVoOG@xxxxxxxxxxxxx/
but mostly rewritten.
It is based on the observation that putting trip points on sorted lists
allows to reduce overhead related to the handling of them in some cases.
Namely, it avoids the need to walk all trips in a thermal zone every
time the zone temperature is updated (including invalid ones) and
generally leads to cleaner code.
Patches [01-08/10] are preliminary, patch [09/10] makes the key changes,
and patch [10/10] is a super-cosmetic cleanup on top of the rest.
Please refer to the individual patch changelogs for details.
Thanks!