drm/ttm: remove dead codes
Subsystems (3)
PATCH 1/1 drm/ttm: remove dead codes
These codes are not used.
Signed-off-by Huang Rui <[email protected]>
--- drivers/gpu/drm/ttm/ttm_bo_util.c | 5 +---- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 8 +------- 2 files changed, 2 insertions(+), 11 deletions(-)
drivers/gpu/drm/ttm/ttm_bo_util.c +1 -4
@@ -629,10 +629,7 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo,return -EINVAL ;if (start_page > bo->num_pages)return -EINVAL ; -#if 0 -if (num_pages >1 && !capable (CAP_SYS_ADMIN )) -return -EPERM ; -#endif + (void )ttm_mem_io_lock (man, false); ret =ttm_mem_io_reserve (bo->bdev, &bo->mem);ttm_mem_io_unlock (man);
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +1 -7
@@ -410,13 +410,7 @@ static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free,if (NUM_PAGES_TO_ALLOC < nr_free) npages_to_free =NUM_PAGES_TO_ALLOC ; -#if 0 -if (nr_free >1 ) { -pr_debug ("%s: (%s:%d) Attempting to free %d (%d) pages\n" , - pool->dev_name, pool->name, current->pid, - npages_to_free, nr_free); - } -#endif +if (use_static) pages_to_free = static_buf;else
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1534318880-31836-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 15.08.2018 um 09:41 schrieb Huang Rui:
Quoted 3 lines
These codes are not used.
Signed-off-by Huang Rui <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 30 lines
--- drivers/gpu/drm/ttm/ttm_bo_util.c | 5 +---- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 8 +------- 2 files changed, 2 insertions(+), 11 deletions(-)drivers/gpu/drm/ttm/ttm_bo_util.c +1
-4@@ -629,10 +629,7 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo,return -EINVAL ;if (start_page > bo->num_pages)return -EINVAL ; -#if 0 -if (num_pages >1 && !capable (CAP_SYS_ADMIN )) -return -EPERM ; -#endif + (void )ttm_mem_io_lock (man, false); ret =ttm_mem_io_reserve (bo->bdev, &bo->mem);ttm_mem_io_unlock (man);drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +0
-1@@ -410,13 +410,7 @@ static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free,if (NUM_PAGES_TO_ALLOC < nr_free) npages_to_free =NUM_PAGES_TO_ALLOC ; -#if 0
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free, · line 416
Quoted 10 lines
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +1
-6-if (nr_free >1 ) { -pr_debug ("%s: (%s:%d) Attempting to free %d (%d) pages\n" , - pool->dev_name, pool->name, current->pid, - npages_to_free, nr_free); - } -#endif +if (use_static) pages_to_free = static_buf;else
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx