]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
drm/ttm: remove sync_obj_arg from ttm_bo_move_accel_cleanup
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Fri, 12 Oct 2012 15:03:11 +0000 (15:03 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 06:10:02 +0000 (16:10 +1000)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-By: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo_util.c
include/drm/ttm/ttm_bo_driver.h

index 3cbf1a8cf55121f0af1ec7ab795b6d85d0909741..6a2592f7daaec6fa8e3b623dadbf6d60d840c497 100644 (file)
@@ -566,7 +566,7 @@ nouveau_bo_move_accel_cleanup(struct nouveau_channel *chan,
        if (ret)
                return ret;
 
-       ret = ttm_bo_move_accel_cleanup(&nvbo->bo, fence, NULL, evict,
+       ret = ttm_bo_move_accel_cleanup(&nvbo->bo, fence, evict,
                                        no_wait_reserve, no_wait_gpu, new_mem);
        nouveau_fence_unref(&fence);
        return ret;
index 5ebe1b3e5db2a532affd334f9f916310ed23f65c..929be87204da526df36c3c146e0a1373b30f0dbc 100644 (file)
@@ -265,7 +265,7 @@ static int radeon_move_blit(struct ttm_buffer_object *bo,
                        new_mem->num_pages * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE), /* GPU pages */
                        &fence);
        /* FIXME: handle copy error */
-       r = ttm_bo_move_accel_cleanup(bo, (void *)fence, NULL,
+       r = ttm_bo_move_accel_cleanup(bo, (void *)fence,
                                      evict, no_wait_reserve, no_wait_gpu, new_mem);
        radeon_fence_unref(&fence);
        return r;
index 81c74f53ce4f3ebf6636de7baa21d3b57eb34f50..b9c4e515b1d8f22621acd723396b78c2f101fd9d 100644 (file)
@@ -611,7 +611,6 @@ EXPORT_SYMBOL(ttm_bo_kunmap);
 
 int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
                              void *sync_obj,
-                             void *sync_obj_arg,
                              bool evict, bool no_wait_reserve,
                              bool no_wait_gpu,
                              struct ttm_mem_reg *new_mem)
index 95628e7da5bfbb3fdd1be8b397bee255ce970776..fc5fad09dae4ce1d528897be5a3de3af63f16f4b 100644 (file)
@@ -970,8 +970,6 @@ extern void ttm_bo_free_old_node(struct ttm_buffer_object *bo);
  *
  * @bo: A pointer to a struct ttm_buffer_object.
  * @sync_obj: A sync object that signals when moving is complete.
- * @sync_obj_arg: An argument to pass to the sync object idle / wait
- * functions.
  * @evict: This is an evict move. Don't return until the buffer is idle.
  * @no_wait_reserve: Return immediately if other buffers are busy.
  * @no_wait_gpu: Return immediately if the GPU is busy.
@@ -987,7 +985,6 @@ extern void ttm_bo_free_old_node(struct ttm_buffer_object *bo);
 
 extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
                                     void *sync_obj,
-                                    void *sync_obj_arg,
                                     bool evict, bool no_wait_reserve,
                                     bool no_wait_gpu,
                                     struct ttm_mem_reg *new_mem);