Commit cd246fa
committed
thermal: core: Clean up thermal_list_lock locking
Once thermal_list_lock has been acquired in
__thermal_cooling_device_register(), it is not necessary to drop it
and take it again until all of the thermal zones have been updated,
so change the code accordingly.
No expected functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 0c7d069 commit cd246fa
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | | - | |
830 | | - | |
831 | 829 | | |
832 | 830 | | |
833 | 831 | | |
| |||
854 | 852 | | |
855 | 853 | | |
856 | 854 | | |
857 | | - | |
858 | | - | |
859 | 855 | | |
860 | 856 | | |
861 | 857 | | |
| |||
933 | 929 | | |
934 | 930 | | |
935 | 931 | | |
| 932 | + | |
936 | 933 | | |
937 | | - | |
938 | 934 | | |
939 | 935 | | |
940 | 936 | | |
941 | 937 | | |
942 | | - | |
943 | 938 | | |
944 | 939 | | |
945 | 940 | | |
946 | 941 | | |
| 942 | + | |
947 | 943 | | |
948 | 944 | | |
949 | 945 | | |
| |||
0 commit comments