Commit 9e9b7e1
committed
thermal: intel: int340x: Use zone lock for synchronization
Because the ->get_trip_temp() and ->get_trip_type() thermal zone
callbacks are only invoked from __thermal_zone_get_trip() which is
always called by the thermal core under the zone lock, it is sufficient
for int340x_thermal_update_trips() to acquire the zone lock for mutual
exclusion with those callbacks.
Accordingly, modify int340x_thermal_update_trips() to use the zone lock
instead of the internal trip_mutex and drop the latter which is not
necessary any more.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent b1bf9db commit 9e9b7e1
2 files changed
Lines changed: 8 additions & 21 deletions
Lines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | | - | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 66 | + | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 74 | + | |
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
| |||
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
99 | | - | |
| 93 | + | |
100 | 94 | | |
101 | 95 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 96 | + | |
105 | 97 | | |
106 | 98 | | |
107 | 99 | | |
| |||
222 | 214 | | |
223 | 215 | | |
224 | 216 | | |
225 | | - | |
226 | | - | |
227 | 217 | | |
228 | 218 | | |
229 | 219 | | |
| |||
286 | 276 | | |
287 | 277 | | |
288 | 278 | | |
289 | | - | |
290 | 279 | | |
291 | 280 | | |
292 | 281 | | |
| |||
299 | 288 | | |
300 | 289 | | |
301 | 290 | | |
302 | | - | |
303 | 291 | | |
304 | 292 | | |
305 | 293 | | |
| |||
309 | 297 | | |
310 | 298 | | |
311 | 299 | | |
312 | | - | |
| 300 | + | |
313 | 301 | | |
314 | 302 | | |
315 | 303 | | |
| |||
344 | 332 | | |
345 | 333 | | |
346 | 334 | | |
347 | | - | |
| 335 | + | |
348 | 336 | | |
349 | 337 | | |
350 | 338 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
0 commit comments