qxl/ttm: drop the unusued no wait flag to reserve function
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:55:37 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:16:29 +0000 (12:16 +1000)
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-5-airlied@gmail.com
drivers/gpu/drm/qxl/qxl_cmd.c
drivers/gpu/drm/qxl/qxl_ioctl.c
drivers/gpu/drm/qxl/qxl_object.c
drivers/gpu/drm/qxl/qxl_object.h

index 798f9dd..54e3c3a 100644 (file)
@@ -588,7 +588,7 @@ static int qxl_reap_surf(struct qxl_device *qdev, struct qxl_bo *surf, bool stal
 {
        int ret;
 
-       ret = qxl_bo_reserve(surf, false);
+       ret = qxl_bo_reserve(surf);
        if (ret)
                return ret;
 
index 8f605d5..5cea6ee 100644 (file)
@@ -322,7 +322,7 @@ static int qxl_update_area_ioctl(struct drm_device *dev, void *data,
 
        qobj = gem_to_qxl_bo(gobj);
 
-       ret = qxl_bo_reserve(qobj, false);
+       ret = qxl_bo_reserve(qobj);
        if (ret)
                goto out;
 
index 80e7a17..f838b6d 100644 (file)
@@ -284,7 +284,7 @@ int qxl_bo_pin(struct qxl_bo *bo)
 {
        int r;
 
-       r = qxl_bo_reserve(bo, false);
+       r = qxl_bo_reserve(bo);
        if (r)
                return r;
 
@@ -302,7 +302,7 @@ int qxl_bo_unpin(struct qxl_bo *bo)
 {
        int r;
 
-       r = qxl_bo_reserve(bo, false);
+       r = qxl_bo_reserve(bo);
        if (r)
                return r;
 
index 21fa810..6b434e5 100644 (file)
 
 #include "qxl_drv.h"
 
-static inline int qxl_bo_reserve(struct qxl_bo *bo, bool no_wait)
+static inline int qxl_bo_reserve(struct qxl_bo *bo)
 {
        int r;
 
-       r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
+       r = ttm_bo_reserve(&bo->tbo, true, false, NULL);
        if (unlikely(r != 0)) {
                if (r != -ERESTARTSYS) {
                        struct drm_device *ddev = bo->tbo.base.dev;