aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2024-07-08 15:16:00 +0000
committerRafael J. Wysocki <[email protected]>2024-07-08 15:24:22 +0000
commit94eacc1c583dd2ba51a2158fb13285f5dc42714b (patch)
treea050794e028d262c2a6b0ab0881fa0520267f7d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentthermal: core: Call monitor_thermal_zone() if zone temperature is invalid (diff)
downloadkernel-94eacc1c583dd2ba51a2158fb13285f5dc42714b.tar.gz
kernel-94eacc1c583dd2ba51a2158fb13285f5dc42714b.zip
thermal: core: Fix list sorting in __thermal_zone_device_update()
The order in which lists are sorted in __thermal_zone_device_update() is reverse with respect to what it should be due to a mistake in thermal_trip_notify_cmp(). Fix it and observe that it is not necessary to sort the lists in different orders. They can both be sorted in ascending order if way_down_list is walked in reverse order which allows the code to be slightly more straightforward (and less prone to silly mistakes). Fixes: 7454f2c42cce ("thermal: core: Sort trip point crossing notifications by temperature") Signed-off-by: Rafael J. Wysocki <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions