History

drm/ttm: remove use_ticket parameter from ttm_bo_reserve

Not used any more.

Christian König committed 10 years ago

Commit dfd5e501 parent 5ee7b4125 files · +55 −62Browse files

Showing the changes to include/drm (1 of 25 files). Show all

Unified · Split

include/drm/ttm/ttm_bo_driver.h+5−9
@@ -759,8 +759,7 @@ extern void ttm_bo_add_to_lru(struct ttm_buffer_object *bo); · 758 unmodified lines
759759 * @bo: A pointer to a struct ttm_buffer_object.
760760 * @interruptible: Sleep interruptible if waiting.
761761 * @no_wait: Don't sleep while trying to reserve, rather return -EBUSY.
762− * @use_ticket: If @bo is already reserved, Only sleep waiting for
763− * it to become unreserved if @ticket->stamp is older.
762+ * @ticket: ticket used to acquire the ww_mutex.
764763 *
765764 * Will not remove reserved buffers from the lru lists.
766765 * Otherwise identical to ttm_bo_reserve.
@@ -776,8 +775,7 @@ extern void ttm_bo_add_to_lru(struct ttm_buffer_object *bo); · 9 unmodified lines
776775 * be returned if @use_ticket is set to true.
777776 */
778777 static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo,
779− bool interruptible,
780− bool no_wait, bool use_ticket,
778+ bool interruptible, bool no_wait,
781779 struct ww_acquire_ctx *ticket)
782780 {
783781 int ret = 0;
@@ -806,8 +804,7 @@ static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo, · 22 unmodified lines
806804 * @bo: A pointer to a struct ttm_buffer_object.
807805 * @interruptible: Sleep interruptible if waiting.
808806 * @no_wait: Don't sleep while trying to reserve, rather return -EBUSY.
809− * @use_ticket: If @bo is already reserved, Only sleep waiting for
810− * it to become unreserved if @ticket->stamp is older.
807+ * @ticket: ticket used to acquire the ww_mutex.
811808 *
812809 * Locks a buffer object for validation. (Or prevents other processes from
813810 * locking it for validation) and removes it from lru lists, while taking
@@ -846,15 +843,14 @@ static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo, · 32 unmodified lines
846843 * be returned if @use_ticket is set to true.
847844 */
848845 static inline int ttm_bo_reserve(struct ttm_buffer_object *bo,
849− bool interruptible,
850− bool no_wait, bool use_ticket,
846+ bool interruptible, bool no_wait,
851847 struct ww_acquire_ctx *ticket)
852848 {
853849 int ret;
854850
855851 WARN_ON(!atomic_read(&bo->kref.refcount));
856852
857− ret = __ttm_bo_reserve(bo, interruptible, no_wait, use_ticket, ticket);
853+ ret = __ttm_bo_reserve(bo, interruptible, no_wait, ticket);
858854 if (likely(ret == 0))
859855 ttm_bo_del_sub_from_lru(bo);
860856

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t