diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-06-05 12:56:26 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-05 17:38:46 -0400 |
commit | c49d82800bbf04a6d7d6843c6f2c2ea5746eb26e (patch) | |
tree | 117c814d8ba609ed6db60f6a4e4b8e587b9ea63b /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 180fc134d712a93a2bbc3d11ed657b5208e6f90f (diff) |
drm/amdgpu: Rename entity cleanup finctions.
Everything in the flush code path (i.e. waiting for SW queue
to become empty) names with *_flush()
and everything in the release code path names *_fini()
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index c0f06c02f2de..0120b24fae1b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |||
@@ -444,7 +444,7 @@ void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr) | |||
444 | idr_init(&mgr->ctx_handles); | 444 | idr_init(&mgr->ctx_handles); |
445 | } | 445 | } |
446 | 446 | ||
447 | void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) | 447 | void amdgpu_ctx_mgr_entity_flush(struct amdgpu_ctx_mgr *mgr) |
448 | { | 448 | { |
449 | struct amdgpu_ctx *ctx; | 449 | struct amdgpu_ctx *ctx; |
450 | struct idr *idp; | 450 | struct idr *idp; |
@@ -473,7 +473,7 @@ void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) | |||
473 | mutex_unlock(&mgr->lock); | 473 | mutex_unlock(&mgr->lock); |
474 | } | 474 | } |
475 | 475 | ||
476 | void amdgpu_ctx_mgr_entity_cleanup(struct amdgpu_ctx_mgr *mgr) | 476 | void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) |
477 | { | 477 | { |
478 | struct amdgpu_ctx *ctx; | 478 | struct amdgpu_ctx *ctx; |
479 | struct idr *idp; | 479 | struct idr *idp; |
@@ -506,7 +506,7 @@ void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr) | |||
506 | struct idr *idp; | 506 | struct idr *idp; |
507 | uint32_t id; | 507 | uint32_t id; |
508 | 508 | ||
509 | amdgpu_ctx_mgr_entity_cleanup(mgr); | 509 | amdgpu_ctx_mgr_entity_fini(mgr); |
510 | 510 | ||
511 | idp = &mgr->ctx_handles; | 511 | idp = &mgr->ctx_handles; |
512 | 512 | ||