drm/ttm: add ttm_bo_move_to_lru_tail function v2
authorChristian König <christian.koenig@amd.com>
Mon, 11 Jan 2016 14:35:20 +0000 (15:35 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jan 2016 17:21:21 +0000 (12:21 -0500)
commitab74961810ba7935b5f9643da10daaa36690f48e
treee821b843633d9869e7a74c56c1ced05170d01acf
parented704a43e84cc536081423dcd3491acf2791aaeb
drm/ttm: add ttm_bo_move_to_lru_tail function v2

This allows the drivers to move a BO to the end of the LRU
without removing and adding it again.

v2: Make it more robust, handle pinned and swapable BOs as well.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h