diff options
author | Dave Airlie <airlied@redhat.com> | 2020-10-21 06:40:29 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-10-22 02:11:49 +0200 |
commit | 6a6e5988a2657cd0c91f6f1a3e7d194599248b6d (patch) | |
tree | 72c3fe530998ab40e2ea678f21f93125a6ced31a /drivers/gpu/drm/ttm | |
parent | drm/ttm: ttm_bo_mem_placement doesn't need ctx parameter. (diff) | |
download | linux-6a6e5988a2657cd0c91f6f1a3e7d194599248b6d.tar.xz linux-6a6e5988a2657cd0c91f6f1a3e7d194599248b6d.zip |
drm/ttm: replace last move_notify with delete_mem_notify
The move notify callback is only used in one place, this should
be removed in the future, but for now just rename it to the use
case which is to notify the driver that the GPU memory is to be
deleted.
Drivers can be cleaned up after this separately.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201021044031.1752624-2-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 03b40ce7d2dc..5b411252a857 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -284,8 +284,8 @@ out_err: static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) { - if (bo->bdev->driver->move_notify) - bo->bdev->driver->move_notify(bo, false, NULL); + if (bo->bdev->driver->delete_mem_notify) + bo->bdev->driver->delete_mem_notify(bo); ttm_bo_tt_destroy(bo); ttm_resource_free(bo, &bo->mem); |