diff options
author | Christian König <ckoenig.leichtzumerken@gmail.com> | 2020-01-10 16:09:54 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-01-16 16:35:07 +0100 |
commit | 5e791166d377c539db0f889e7793204912c374da (patch) | |
tree | 762e53f9a5cf1490bf7dbc31b7e66b9a33fcb594 /drivers/gpu/drm/ttm | |
parent | e4eed858357a94438fa5e3c5839c7b597acdb688 (diff) |
drm/ttm: nuke invalidate_caches callback
Another completely unused feature.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/348265/
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 5df596fb0280..06f6d650827f 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -372,14 +372,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, } moved: - if (bo->evicted) { - if (bdev->driver->invalidate_caches) { - ret = bdev->driver->invalidate_caches(bdev, bo->mem.placement); - if (ret) - pr_err("Can not flush read caches\n"); - } - bo->evicted = false; - } + bo->evicted = false; if (bo->mem.mm_node) bo->offset = (bo->mem.start << PAGE_SHIFT) + |