On Wed, Oct 16, 2024 at 1:37 PM Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> wrote:
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.
This material is on the thermal-core-experimental branch in
linux-pm.git along with
https://lore.kernel.org/linux-pm/2215082.irdbgypaU6@xxxxxxxxxxxxx/
and
https://lore.kernel.org/linux-pm/4985597.31r3eYUQgx@xxxxxxxxxxxxx/
which are also present in the thermal-core-testing branch.