Commit b57841f
committed
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]>1 parent 197b6b6 commit b57841f
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
880 | | - | |
881 | 879 | | |
882 | 880 | | |
883 | 881 | | |
| |||
903 | 901 | | |
904 | 902 | | |
905 | 903 | | |
906 | | - | |
907 | | - | |
908 | 904 | | |
909 | 905 | | |
910 | 906 | | |
| |||
931 | 927 | | |
932 | 928 | | |
933 | 929 | | |
| 930 | + | |
| 931 | + | |
934 | 932 | | |
935 | 933 | | |
936 | 934 | | |
| |||
0 commit comments