drm/ttm: move swapout logic around v3
authorChristian König <christian.koenig@amd.com>
Tue, 6 Oct 2020 11:35:32 +0000 (13:35 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 24 Mar 2021 16:05:07 +0000 (17:05 +0100)
commitebd59851c796c221daf0d3b594fb2533f87161cf
treef05c2a00578b93e6728cb2368fa1b50e7a83af46
parent976677b5958ef7f9973ea8ba952a96b7243f2c13
drm/ttm: move swapout logic around v3

Move the iteration of the global lru into the new function
ttm_global_swapout() and use that instead in drivers.

v2: consistently return int
v3: fix build fail

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/424008/
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_device.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/vmwgfx/ttm_memory.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_device.h