aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/cirrus/cirrus_ttm.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2013-06-27 07:48:21 -0400
committerDave Airlie <airlied@redhat.com>2013-06-27 22:04:05 -0400
commit37c5a525840d24b97ad89cc18176016f7f36cf8e (patch)
tree54fc0b179e87c72e36d7263547b8843605cc26ff /drivers/gpu/drm/cirrus/cirrus_ttm.c
parent4094dc2a3b6c33ab88bffa6b37c0f91201fd04ab (diff)
drm/cirrus: inline reservations
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/cirrus/cirrus_ttm.c')
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_ttm.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_ttm.c b/drivers/gpu/drm/cirrus/cirrus_ttm.c
index 36b9b0bab1da..0047012045c2 100644
--- a/drivers/gpu/drm/cirrus/cirrus_ttm.c
+++ b/drivers/gpu/drm/cirrus/cirrus_ttm.c
@@ -308,24 +308,6 @@ void cirrus_ttm_placement(struct cirrus_bo *bo, int domain)
308 bo->placement.num_busy_placement = c; 308 bo->placement.num_busy_placement = c;
309} 309}
310 310
311int cirrus_bo_reserve(struct cirrus_bo *bo, bool no_wait)
312{
313 int ret;
314
315 ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0);
316 if (ret) {
317 if (ret != -ERESTARTSYS && ret != -EBUSY)
318 DRM_ERROR("reserve failed %p\n", bo);
319 return ret;
320 }
321 return 0;
322}
323
324void cirrus_bo_unreserve(struct cirrus_bo *bo)
325{
326 ttm_bo_unreserve(&bo->bo);
327}
328
329int cirrus_bo_create(struct drm_device *dev, int size, int align, 311int cirrus_bo_create(struct drm_device *dev, int size, int align,
330 uint32_t flags, struct cirrus_bo **pcirrusbo) 312 uint32_t flags, struct cirrus_bo **pcirrusbo)
331{ 313{