Not used any more.
Showing the changes to include/drm (1 of 25 files). Show all
Unified · Split
| @@ -759,8 +759,7 @@ extern void ttm_bo_add_to_lru(struct ttm_buffer_object *bo); · 758 unmodified lines | ||
| 759 | 759 | * @bo: A pointer to a struct ttm_buffer_object. |
| 760 | 760 | * @interruptible: Sleep interruptible if waiting. |
| 761 | 761 | * @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. | |
| 764 | 763 | * |
| 765 | 764 | * Will not remove reserved buffers from the lru lists. |
| 766 | 765 | * 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 | ||
| 776 | 775 | * be returned if @use_ticket is set to true. |
| 777 | 776 | */ |
| 778 | 777 | 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, | |
| 781 | 779 | struct ww_acquire_ctx *ticket) |
| 782 | 780 | { |
| 783 | 781 | int ret = 0; |
| @@ -806,8 +804,7 @@ static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo, · 22 unmodified lines | ||
| 806 | 804 | * @bo: A pointer to a struct ttm_buffer_object. |
| 807 | 805 | * @interruptible: Sleep interruptible if waiting. |
| 808 | 806 | * @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. | |
| 811 | 808 | * |
| 812 | 809 | * Locks a buffer object for validation. (Or prevents other processes from |
| 813 | 810 | * 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 | ||
| 846 | 843 | * be returned if @use_ticket is set to true. |
| 847 | 844 | */ |
| 848 | 845 | 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, | |
| 851 | 847 | struct ww_acquire_ctx *ticket) |
| 852 | 848 | { |
| 853 | 849 | int ret; |
| 854 | 850 | |
| 855 | 851 | WARN_ON(!atomic_read(&bo->kref.refcount)); |
| 856 | 852 | |
| 857 | − ret = __ttm_bo_reserve(bo, interruptible, no_wait, use_ticket, ticket); | |
| 853 | + ret = __ttm_bo_reserve(bo, interruptible, no_wait, ticket); | |
| 858 | 854 | if (likely(ret == 0)) |
| 859 | 855 | ttm_bo_del_sub_from_lru(bo); |
| 860 | 856 | |