summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ttm/ttm_resource.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-11-02 13:16:13 +0100
committerChristian König <christian.koenig@amd.com>2020-11-04 11:23:25 +0100
commitc44dfe4de053914cae61ed0a36421b3017f428bd (patch)
tree8865d8fd5dc9ce5151597349355d1df57b6ba31d /drivers/gpu/drm/ttm/ttm_resource.c
parent586052b0a6062e2fa98189d7f24d8cb9ccf4258b (diff)
downloadlinux-c44dfe4de053914cae61ed0a36421b3017f428bd.tar.gz
linux-c44dfe4de053914cae61ed0a36421b3017f428bd.tar.bz2
linux-c44dfe4de053914cae61ed0a36421b3017f428bd.zip
drm/ttm: replace context flags with bools v2
The ttm_operation_ctx structure has a mixture of flags and bools. Drop the flags and replace them with bools as well. v2: fix typos, improve comments Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/398686/
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_resource.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c
index 4ebc043e2867..b60699bf4816 100644
--- a/drivers/gpu/drm/ttm/ttm_resource.c
+++ b/drivers/gpu/drm/ttm/ttm_resource.c
@@ -89,7 +89,7 @@ int ttm_resource_manager_evict_all(struct ttm_bo_device *bdev,
struct ttm_operation_ctx ctx = {
.interruptible = false,
.no_wait_gpu = false,
- .flags = TTM_OPT_FLAG_FORCE_ALLOC
+ .force_alloc = true
};
struct ttm_bo_global *glob = &ttm_bo_glob;
struct dma_fence *fence;