drm/amdgpu: use exiting amdgpu_ctx_total_num_entities function
authorKevin Wang <kevin1.wang@amd.com>
Tue, 13 Aug 2019 08:52:04 +0000 (16:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:51:45 +0000 (10:51 -0500)
commitf0f50dcfd427f9f4a179048f4b56bff176bacc94
treeb880dce3c4d69427f3c800e4d9b94aa11829298a
parentb81e57fbf92e76ce8b7329650440021ebb4e00a0
drm/amdgpu: use exiting amdgpu_ctx_total_num_entities function

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