Skip to content

Commit

Permalink
drm/amdgpu/gfx9: rename some functions
Browse files Browse the repository at this point in the history
To better match where they are used.  Called from sw_init
and sw_fini.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Mar 30, 2017
1 parent b4fcf7f commit e935c21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ static void gfx_v9_0_kiq_free_ring(struct amdgpu_ring *ring,
}

/* create MQD for each compute queue */
static int gfx_v9_0_compute_mqd_soft_init(struct amdgpu_device *adev)
static int gfx_v9_0_compute_mqd_sw_init(struct amdgpu_device *adev)
{
struct amdgpu_ring *ring = NULL;
int r, i;
Expand Down Expand Up @@ -684,7 +684,7 @@ static int gfx_v9_0_compute_mqd_soft_init(struct amdgpu_device *adev)
return 0;
}

static void gfx_v9_0_compute_mqd_soft_fini(struct amdgpu_device *adev)
static void gfx_v9_0_compute_mqd_sw_fini(struct amdgpu_device *adev)
{
struct amdgpu_ring *ring = NULL;
int i;
Expand Down Expand Up @@ -1112,7 +1112,7 @@ static int gfx_v9_0_sw_init(void *handle)
return r;

/* create MQD for all compute queues as wel as KIQ for SRIOV case */
r = gfx_v9_0_compute_mqd_soft_init(adev);
r = gfx_v9_0_compute_mqd_sw_init(adev);
if (r)
return r;
}
Expand Down Expand Up @@ -1163,7 +1163,7 @@ static int gfx_v9_0_sw_fini(void *handle)
amdgpu_ring_fini(&adev->gfx.compute_ring[i]);

if (amdgpu_sriov_vf(adev)) {
gfx_v9_0_compute_mqd_soft_fini(adev);
gfx_v9_0_compute_mqd_sw_fini(adev);
gfx_v9_0_kiq_free_ring(&adev->gfx.kiq.ring, &adev->gfx.kiq.irq);
gfx_v9_0_kiq_fini(adev);
}
Expand Down

0 comments on commit e935c21

Please sign in to comment.