]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/ttm: ttm_bo_swapout_all doesn't use it's argument.
authorDave Airlie <airlied@redhat.com>
Tue, 28 Jul 2020 03:42:54 +0000 (13:42 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 29 Jul 2020 00:01:23 +0000 (10:01 +1000)
Just drop the argument from this.

This does ask the question if this is the function vmwgfx
should be using or should it be doing an evict all like
the other drivers.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200728034254.20114-1-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
include/drm/ttm/ttm_bo_api.h

index b03747717ec74368cee5a22574e60672d7487546..f297fd5e02d4d407b0f18e275a8202dc0c2f648e 100644 (file)
@@ -1838,7 +1838,7 @@ out:
 }
 EXPORT_SYMBOL(ttm_bo_swapout);
 
-void ttm_bo_swapout_all(struct ttm_bo_device *bdev)
+void ttm_bo_swapout_all(void)
 {
        struct ttm_operation_ctx ctx = {
                .interruptible = false,
index 47042838787843188667db503fa7d8815f373a93..fb39826f72c1ee6eafa812533e7cc66c8f24be36 100644 (file)
@@ -1352,7 +1352,7 @@ static int vmw_pm_freeze(struct device *kdev)
        vmw_execbuf_release_pinned_bo(dev_priv);
        vmw_resource_evict_all(dev_priv);
        vmw_release_device_early(dev_priv);
-       ttm_bo_swapout_all(&dev_priv->bdev);
+       ttm_bo_swapout_all();
        if (dev_priv->enable_fb)
                vmw_fifo_resource_dec(dev_priv);
        if (atomic_read(&dev_priv->num_fifo_resources) != 0) {
index b1c705a935179ac0d1e4359e4f12500cf732d05c..a9e13b2528201f7a7fb5d8e6a3a8682ceb8e87f6 100644 (file)
@@ -692,7 +692,7 @@ ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
 
 int ttm_bo_swapout(struct ttm_bo_global *glob,
                        struct ttm_operation_ctx *ctx);
-void ttm_bo_swapout_all(struct ttm_bo_device *bdev);
+void ttm_bo_swapout_all(void);
 
 /**
  * ttm_bo_uses_embedded_gem_object - check if the given bo uses the