]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Represent suspend-related thermal zone flags as bits
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Oct 2024 19:11:53 +0000 (21:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Oct 2024 10:06:52 +0000 (12:06 +0200)
commit26c9ab8090cda1eb3d42f491cc32d227404897da
tree59b55d4fc70ef63c1920a03d4063c1b59618bb6f
parent7ddca5885718c2683d75689aa065c9a3bb317e5a
thermal: core: Represent suspend-related thermal zone flags as bits

Instead of using two separate fields in struct thermal_zone_device for
representing flags related to thermal zone suspend, represent them
explicitly as bits in one u8 "state" field.

Subsequently, that field will be used for addressing race conditions
related to thermal zone initialization and exit.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/7733910.EvYhyI6sBW@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h