[PATCH v4 0/6] thermal: core: Fixes, simplifications and suspend/resume relocation

Rafael J. Wysocki
2026-04-07T14:11:03Z

Hi All,

This is an update of

https://lore.kernel.org/linux-pm/5119690.31r3eYUQgx@rafael.j.wysocki/

changing the first two patches to address Sashiko feedback.

This series is intended for 7.1 (it applies on top of linux-next).

If fixes the thermal zone removal and registration rollback path by
addressing possible race conditions and a memory leak in that code (patches
[1-2/6]), removes a redundant check (patch [3/6]), changes the thermal
workqueue to an unbound and non-freezable one (patch [4/6]), changes the
allocation of thermal_class to static (patch [5/4]), and relocates the
suspend and resume of thermal zones closer to the suspend and resume of
devices, respectively (patch [6/6]).

Thanks!