Commit f52dc3c7 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Greg Kroah-Hartman
Browse files

thermal: core: Represent suspend-related thermal zone flags as bits



[ Upstream commit 26c9ab80 ]

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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/7733910.EvYhyI6sBW@rjwysocki.net


Reviewed-by: default avatarLukasz Luba <lukasz.luba@arm.com>
Stable-dep-of: 7837fa81 ("thermal: core: Mark thermal zones as initializing to start with")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 933ef936
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment