diff options
author | Maarten Lankhorst <m.b.lankhorst@gmail.com> | 2013-06-27 07:48:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-27 22:04:09 -0400 |
commit | 3482032457f50cae196f6397ebec7f5f2ad3cf7d (patch) | |
tree | 7f41fe11224f91d1fb1b90edb0ccec56970cc921 /drivers/gpu/drm/ttm/ttm_execbuf_util.c | |
parent | c43f9b16991950c00621641ef2c5cd4a3af2a052 (diff) |
drm/ttm: inline ttm_bo_reserve and related calls
Makes lockdep a lot more useful.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_execbuf_util.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_execbuf_util.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c index 7392da557be2..6c911789ae5c 100644 --- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c +++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c | |||
@@ -44,12 +44,10 @@ static void ttm_eu_backoff_reservation_locked(struct list_head *list, | |||
44 | 44 | ||
45 | entry->reserved = false; | 45 | entry->reserved = false; |
46 | if (entry->removed) { | 46 | if (entry->removed) { |
47 | ttm_bo_unreserve_ticket_locked(bo, ticket); | 47 | ttm_bo_add_to_lru(bo); |
48 | entry->removed = false; | 48 | entry->removed = false; |
49 | |||
50 | } else { | ||
51 | ww_mutex_unlock(&bo->resv->lock); | ||
52 | } | 49 | } |
50 | ww_mutex_unlock(&bo->resv->lock); | ||
53 | } | 51 | } |
54 | } | 52 | } |
55 | 53 | ||
@@ -220,7 +218,8 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, | |||
220 | bo = entry->bo; | 218 | bo = entry->bo; |
221 | entry->old_sync_obj = bo->sync_obj; | 219 | entry->old_sync_obj = bo->sync_obj; |
222 | bo->sync_obj = driver->sync_obj_ref(sync_obj); | 220 | bo->sync_obj = driver->sync_obj_ref(sync_obj); |
223 | ttm_bo_unreserve_ticket_locked(bo, ticket); | 221 | ttm_bo_add_to_lru(bo); |
222 | ww_mutex_unlock(&bo->resv->lock); | ||
224 | entry->reserved = false; | 223 | entry->reserved = false; |
225 | } | 224 | } |
226 | spin_unlock(&bdev->fence_lock); | 225 | spin_unlock(&bdev->fence_lock); |