summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_bo_util.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-10-20 11:03:17 +1000
committerDave Airlie <airlied@redhat.com>2020-10-21 13:44:05 +1000
commit28ee846e83782e61d86075444c5848ab4a329241 (patch)
tree8947dff31e8560eebee80673ef8a6fffbf1b6ef2 /drivers/gpu/drm/ttm/ttm_bo_util.c
parentf227ccc9612f5d2f6315874c93acf3945fd51dfb (diff)
downloadlinux-stable-28ee846e83782e61d86075444c5848ab4a329241.tar.gz
linux-stable-28ee846e83782e61d86075444c5848ab4a329241.tar.bz2
linux-stable-28ee846e83782e61d86075444c5848ab4a329241.zip
drm/ttm: remove move to new and inline into remainging place.
This show the remaining bind callback, which my next series of patches will aim to remove. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201020010319.1692445-6-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo_util.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_util.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index 65f042d6da7c..0a5694ef1e07 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -45,26 +45,6 @@ struct ttm_transfer_obj {
struct ttm_buffer_object *bo;
};
-int ttm_bo_move_to_new_tt_mem(struct ttm_buffer_object *bo,
- struct ttm_operation_ctx *ctx,
- struct ttm_resource *new_mem)
-{
- int ret;
-
- if (new_mem->mem_type == TTM_PL_SYSTEM)
- return 0;
-
- ret = ttm_tt_populate(bo->bdev, bo->ttm, ctx);
- if (unlikely(ret != 0))
- return ret;
-
- ret = ttm_bo_tt_bind(bo, new_mem);
- if (unlikely(ret != 0))
- return ret;
-
- return 0;
-}
-
int ttm_mem_io_reserve(struct ttm_bo_device *bdev,
struct ttm_resource *mem)
{