Skip to content

thermal: core: Updates related to thermal instances, trip points handling and locking

Rafael J. Wysocki linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8thermal: core: Move lists of thermal instances to trip descriptorsdrivers/thermal/gov_bang_bang.c drivers/thermal/gov_fair_share.c drivers/thermal/gov_power_allocator.c +4 more+60 -670 replies
2/8thermal: core: Pass trip descriptors to trip bind/unbind functionsdrivers/thermal/thermal_core.c+12 -150 replies
3/8thermal: core: Build sorted lists instead of sorting them laterdrivers/thermal/thermal_core.c+18 -150 replies
4/8thermal: core: Initialize thermal zones before registerimg themdrivers/thermal/thermal_core.c+1 -10 replies
5/8thermal: core: Rename trip list node in struct thermal_trip_descdrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h+6 -60 replies
6/8thermal: core: Add function for moving trips to sorted listsdrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h drivers/thermal/thermal_trip.c+27 -200 replies
7/8thermal: core: Use trip lists for trip crossing detectiondrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h drivers/thermal/thermal_trip.c+132 -940 replies
8/8thermal: core: Add and use thermal zone guarddrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h drivers/thermal/thermal_helpers.c +2 more+76 -1010 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH for 6.13 v1 0/8] thermal: core: Updates related to thermal instances, trip points handling and locking

Hi Everyone,

This is a collection of thermal core updates for the 6.13 cycle that have been present in my bleeding-edge branch for some time (they are also present in my thermal-core-experimental branch). They are based on linux-pm.git/thermal.

Some of them touch the same pieces of code as

https://lore.kernel.org/linux-pm/[email protected]/

but these are complementary changes rather than real conflicts so adjusting them to apply along with the above should not be a problem.

The first two patches move the lists of thermal instances from thermal zone device objects to trip point descriptors, which allows some code to become more straightforward, and clean up code on top of that.

The next five patches rearrange the handling of trip points while updating thermal zone temperature to use sorted lists of trip points, which allows the total amount of computations related to this to be reduced, at least on average.

The last patch simplifies the thermal zone locking with the help of a guard.

Please refer to the individual patch changelogs for details.

Thanks!