]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite613e0cef5c24933d1001db15138836bb6519418
treee821b843633d9869e7a74c56c1ced05170d01acf
parent6e13afa3b1a6a330ab254b322c08147deec77c9a
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