]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: allocate the bo_list array after the list
authorChristian König <christian.koenig@amd.com>
Mon, 30 Jul 2018 14:16:01 +0000 (16:16 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jul 2018 21:58:19 +0000 (16:58 -0500)
commit017fba0617c0b19dc5445c9b7dde78dbca298c7a
treec561ae3c784ad5930fd2db05389b2516b89693e4
parentc8e003a85d751794f83e5aea2bab9f4fc9fa0ff2
drm/amdgpu: allocate the bo_list array after the list

This avoids multiple allocations for the head and the array.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h