Skip to content

RFC thermal: core: Updates related to thermal zone initialization, suspend and locking

Rafael J. Wysocki linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest20 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20thermal: core: Use the thermal zone guard in more casesdrivers/thermal/thermal_debugfs.c drivers/thermal/thermal_hwmon.c drivers/thermal/thermal_netlink.c+22 -300 replies
2/20thermal: core: Rearrange PM notification codedrivers/thermal/thermal_core.c+42 -420 replies
3/20thermal: core: Represent suspend-related thermal zone flags as bitsdrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h+12 -100 replies
4/20thermal: core: Mark thermal zones as initializing to start withdrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h+12 -30 replies
5/20thermal: core: Fix race between zone registration and system suspenddrivers/thermal/thermal_core.c+16 -20 replies
6/20thermal: core: Consolidate thermal zone locking during initializationdrivers/thermal/thermal_core.c+20 -200 replies
7/20thermal: core: Mark thermal zones as exiting before unregistrationdrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h+4 -20 replies
8/20thermal: core: Consolidate thermal zone locking in the exit pathdrivers/thermal/thermal_core.c+30 -230 replies
9/20thermal: core: Update thermal zones after cooling device bindingdrivers/thermal/thermal_core.c+13 -100 replies
10/20thermal: core: Drop need_update field from struct thermal_zone_devicedrivers/thermal/thermal_core.c drivers/thermal/thermal_core.h+0 -60 replies
11/20thermal: core: Separate code running under thermal_list_lockdrivers/thermal/thermal_core.c+36 -280 replies
12/20thermal: core: Manage thermal_list_lock using a mutex guarddrivers/thermal/thermal_core.c+69 -820 replies
13/20thermal: core: Call thermal_governor_update_tz() outside of cdev lockdrivers/thermal/thermal_core.c+5 -60 replies
14/20thermal: core: Introduce thermal_instance_add()drivers/thermal/thermal_core.c+30 -160 replies
15/20thermal: core: Introduce thermal_instance_delete()drivers/thermal/thermal_core.c+12 -50 replies
16/20thermal: core: Introduce thermal_cdev_update_nocheck()drivers/thermal/gov_bang_bang.c drivers/thermal/gov_fair_share.c drivers/thermal/gov_power_allocator.c +2 more+18 -90 replies
17/20thermal: core: Add and use cooling device guarddrivers/thermal/gov_power_allocator.c drivers/thermal/gov_step_wise.c drivers/thermal/thermal_core.c +4 more+52 -760 replies
18/20thermal: core: Call __thermal_cdev_update() on cdev unbinddrivers/thermal/thermal_core.c+6 -00 replies
19/20thermal: core: Separate thermal zone governor initializationdrivers/thermal/thermal_core.c+21 -150 replies
20/20thermal: core: Manage thermal_governor_lock using a mutex guarddrivers/thermal/thermal_core.c+13 -270 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH for 6.13 v1 00/20] thermal: core: Updates related to thermal zone initialization, suspend and locking

Hi Everyone,

This is a continuation of

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

that eliminates a couple of races related to thermal zone initialization and system suspend, cleans up thermal zone updates handling during thermal zone and cooling device initialization and generally switches over the thermal core to using guards for locking.

Please see the individual patch changelogs for details.

The patches in this series only received minimum testing (hence RFC), but all of these changes make sense IMV.

Thanks!