]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/ttm: remove ttm_bo_unreserve_ticket
authorChristian König <christian.koenig@amd.com>
Wed, 8 Nov 2017 20:06:03 +0000 (21:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:20 +0000 (12:47 -0500)
Just another alias for ttm_bo_unreserve.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/nouveau/nouveau_gem.c
include/drm/ttm/ttm_bo_driver.h

index efc89aaef66a0f4430939b1e6cf84d340d48de2a..e72a7e37eb0af435851ddd5e25da26a5afa25965 100644 (file)
@@ -354,7 +354,7 @@ validate_fini_no_ticket(struct validate_op *op, struct nouveau_fence *fence,
 
                list_del(&nvbo->entry);
                nvbo->reserved_by = NULL;
-               ttm_bo_unreserve_ticket(&nvbo->bo, &op->ticket);
+               ttm_bo_unreserve(&nvbo->bo);
                drm_gem_object_unreference_unlocked(&nvbo->gem);
        }
 }
index 3659cf6150d248953cb7344c61c74350509f67ea..cba1477aa983a3792d3e0d8fe6341bdb19c12ebb 100644 (file)
@@ -957,19 +957,6 @@ static inline void ttm_bo_unreserve(struct ttm_buffer_object *bo)
        reservation_object_unlock(bo->resv);
 }
 
-/**
- * ttm_bo_unreserve_ticket
- * @bo: A pointer to a struct ttm_buffer_object.
- * @ticket: ww_acquire_ctx used for reserving
- *
- * Unreserve a previous reservation of @bo made with @ticket.
- */
-static inline void ttm_bo_unreserve_ticket(struct ttm_buffer_object *bo,
-                                          struct ww_acquire_ctx *t)
-{
-       ttm_bo_unreserve(bo);
-}
-
 /*
  * ttm_bo_util.c
  */