projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b81e57f
)
drm/amdgpu: use exiting amdgpu_ctx_total_num_entities function
author
Kevin Wang
<kevin1.wang@amd.com>
Tue, 13 Aug 2019 08:52:04 +0000
(16:52 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:51:45 +0000
(10:51 -0500)
simplify driver code.
Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index
34ab14e
..
c0b101c
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@
-289,10
+289,7
@@
static void amdgpu_ctx_do_release(struct kref *ref)
ctx = container_of(ref, struct amdgpu_ctx, refcount);
- num_entities = 0;
- for (i = 0; i < AMDGPU_HW_IP_NUM; i++)
- num_entities += amdgpu_ctx_num_entities[i];
-
+ num_entities = amdgpu_ctx_total_num_entities();
for (i = 0; i < num_entities; i++)
drm_sched_entity_destroy(&ctx->entities[0][i].entity);