drm/ttm: use a helper for unlocked moves to the lru tail
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:55:39 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:16:33 +0000 (12:16 +1000)
commit20784cdf4b8c81359289aff73a89f557c7bc9e76
treeff950470260392f77f3cf10db39664cf2ddd33d4
parent46bca88bbdd3046db31b8b7e053a909ae79e285b
drm/ttm: use a helper for unlocked moves to the lru tail

The pattern was repeated a few times, just make an inline for it.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-7-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/ttm/ttm_bo_driver.h