Commit 33eab80
committed
thermal: core: Call thermal_governor_update_tz() outside of cdev lock
Holding a cooling device lock under thermal_governor_update_tz() is not
necessary and it may cause lockdep to complain if any governor's
.update_tz() callback attempts to lock a cdev.
For this reason, move the thermal_governor_update_tz() calls in
thermal_bind_cdev_to_trip() and thermal_unbind_cdev_from_trip() from
under the cdev lock.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/7749552.EvYhyI6sBW@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>1 parent d1c8aa2 commit 33eab80
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | | - | |
838 | | - | |
839 | 837 | | |
840 | 838 | | |
841 | 839 | | |
842 | | - | |
| 840 | + | |
| 841 | + | |
843 | 842 | | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | 878 | | |
882 | 879 | | |
883 | 880 | | |
| |||
887 | 884 | | |
888 | 885 | | |
889 | 886 | | |
| 887 | + | |
| 888 | + | |
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
| |||
0 commit comments