projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9764c35
)
drm/ttm: minor cleanup to move to system
author
Dave Airlie
<airlied@redhat.com>
Tue, 20 Oct 2020 01:03:14 +0000
(11:03 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 21 Oct 2020 03:43:31 +0000
(13:43 +1000)
resource free already sets the domain to system, and old_mem
isn't really needed.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20201020010319.1692445-3-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_bo_util.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_bo_util.c
b/drivers/gpu/drm/ttm/ttm_bo_util.c
index
520b53e
..
5cfcb92
100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/
drivers/gpu/drm/ttm/ttm_bo_util.c
@@
-68,10
+68,9
@@
int ttm_bo_move_to_new_tt_mem(struct ttm_buffer_object *bo,
int ttm_bo_move_to_system(struct ttm_buffer_object *bo,
struct ttm_operation_ctx *ctx)
{
- struct ttm_resource *old_mem = &bo->mem;
int ret;
- if (
old_mem->
mem_type == TTM_PL_SYSTEM)
+ if (
bo->mem.
mem_type == TTM_PL_SYSTEM)
return 0;
ret = ttm_bo_wait_ctx(bo, ctx);
@@
-83,7
+82,6
@@
int ttm_bo_move_to_system(struct ttm_buffer_object *bo,
ttm_bo_tt_unbind(bo);
ttm_resource_free(bo, &bo->mem);
- old_mem->mem_type = TTM_PL_SYSTEM;
return 0;
}
EXPORT_SYMBOL(ttm_bo_move_to_system);