drm/amdgpu: use the new cursor in amdgpu_ttm_bo_eviction_valuable
authorChristian König <christian.koenig@amd.com>
Wed, 17 Feb 2021 18:43:34 +0000 (19:43 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:30:00 +0000 (23:30 -0400)
commit2f44172bdca7f52a3c52f5b89378e8da47909352
tree044d6e19364293379e762b8dfece54ea2b37d28d
parent755eadf662881ef41bcf221d179336781c7a73dd
drm/amdgpu: use the new cursor in amdgpu_ttm_bo_eviction_valuable

Separate the drm_mm_node walking from the actual handling.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Oak Zeng <Oak.Zeng@amd.com>
Tested-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Arunpravin <Arunpravin.PaneerSelvam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c