]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal: core: Allocate thermal_class statically
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 7 Apr 2026 14:07:51 +0000 (16:07 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Apr 2026 10:30:31 +0000 (12:30 +0200)
commitc4c6a8646359612db34c76f58799f5206945e365
treef106124a8ab0a9b0a546e5b0b6438442fb11859b
parent26fd03effa94cdfbbad550f3aa32cb89ccb016b6
thermal: core: Allocate thermal_class statically

Define thermal_class as a static structure to simplify thermal_init()
and to simplify thermal class availability checks that will need to
be carried out during the suspend and resume of thermal zones after
subsequent changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/10831981.nUPlyArG6x@rafael.j.wysocki
drivers/thermal/thermal_core.c