diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-10-04 21:05:49 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:01:16 +0100 |
| commit | d01d9005fbf59e39a310790197b6ce0c6f18a4a4 (patch) | |
| tree | 11872134b911882bb9048d076a971febe99fff5f /scripts/stackusage | |
| parent | 24d1a4125679112401c2454cfda168f253127a0c (diff) | |
| download | linux-d01d9005fbf59e39a310790197b6ce0c6f18a4a4.tar.gz linux-d01d9005fbf59e39a310790197b6ce0c6f18a4a4.tar.bz2 linux-d01d9005fbf59e39a310790197b6ce0c6f18a4a4.zip | |
thermal: core: Initialize thermal zones before registering them
[ Upstream commit 662f920f7e390db5d1a6792a2b0ffa59b6c962fc ]
Since user space can start interacting with a new thermal zone as soon
as device_register() called by thermal_zone_device_register_with_trips()
returns, it is better to initialize the thermal zone before calling
device_register() on it.
Fixes: d0df264fbd3c ("thermal/core: Remove pointless thermal_zone_device_reset() function")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3336146.44csPzL39Z@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
