]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:25:44 +0000 (10:25 +0100)
commit295b14eeb0d1f49601ff42f20aed5dfe243694e2
treea4bed3daecdd057bf5cfc83be45470a472a68c81
parent5f0ae042f48fb835288283872ea871a8c6e56bb2
drm/ttm: add ttm_bo_move_to_lru_tail function v2

BugLink: http://bugs.launchpad.net/bugs/1546572
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>
(cherry picked from commit ab74961810ba7935b5f9643da10daaa36690f48e)
Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h