]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Simplify sorting of the bo list
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 12 Jan 2026 10:22:34 +0000 (10:22 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jan 2026 23:08:29 +0000 (18:08 -0500)
commitdda702172dc26e080fe048b8f170eaccb8097c1a
tree494d1a2523733adabea528dfce89491bb27622aa
parentf7e06786512e730f750138b1221b6342bcf07859
drm/amdgpu: Simplify sorting of the bo list

Sort function only cares about the sign so we can replace the conditionals
with a single subtraction.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c