Commit 33ce203
thermal: core: Drop excessive lockdep_assert_held() calls
The lockdep_assert_held() calls added to cooling_device_stats_setup()
and cooling_device_stats_destroy() by commit 790930f ("thermal:
core: Introduce thermal_cooling_device_update()") trigger false-positive
lockdep reports in code paths that are not subject to race conditions
(before cooling device registration and after cooling device removal).
For this reason, remove the lockdep_assert_held() calls from both
cooling_device_stats_setup() and cooling_device_stats_destroy() and
add one to thermal_cooling_device_stats_reinit() that has to be called
under the cdev lock.
Fixes: 790930f ("thermal: core: Introduce thermal_cooling_device_update()")
Link: https://lore.kernel.org/linux-acpi/[email protected]
Reported-by: Imre Deak <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
(cherry picked from commit b57841f)
Acked-by: Jamie Nguyen <[email protected]>1 parent a816806 commit 33ce203
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
926 | | - | |
927 | | - | |
928 | 926 | | |
929 | 927 | | |
930 | 928 | | |
| |||
950 | 948 | | |
951 | 949 | | |
952 | 950 | | |
953 | | - | |
954 | | - | |
955 | 951 | | |
956 | 952 | | |
957 | 953 | | |
| |||
978 | 974 | | |
979 | 975 | | |
980 | 976 | | |
| 977 | + | |
| 978 | + | |
981 | 979 | | |
982 | 980 | | |
983 | 981 | | |
| |||
0 commit comments