Commit 4e6c6fc1 authored by Yong Zhao's avatar Yong Zhao Committed by Alex Deucher

drm/amdkfd: Replace mqd with mqd_mgr as the variable name for mqd_manager

This will make reading code much easier. This fixes a few spots missed in a
previous commit with the same title.
Signed-off-by: default avatarYong Zhao <yong.zhao@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 82d1a1b1
...@@ -1547,7 +1547,7 @@ static int get_wave_state(struct device_queue_manager *dqm, ...@@ -1547,7 +1547,7 @@ static int get_wave_state(struct device_queue_manager *dqm,
u32 *ctl_stack_used_size, u32 *ctl_stack_used_size,
u32 *save_area_used_size) u32 *save_area_used_size)
{ {
struct mqd_manager *mqd; struct mqd_manager *mqd_mgr;
int r; int r;
dqm_lock(dqm); dqm_lock(dqm);
...@@ -1558,19 +1558,19 @@ static int get_wave_state(struct device_queue_manager *dqm, ...@@ -1558,19 +1558,19 @@ static int get_wave_state(struct device_queue_manager *dqm,
goto dqm_unlock; goto dqm_unlock;
} }
mqd = dqm->ops.get_mqd_manager(dqm, KFD_MQD_TYPE_COMPUTE); mqd_mgr = dqm->ops.get_mqd_manager(dqm, KFD_MQD_TYPE_COMPUTE);
if (!mqd) { if (!mqd_mgr) {
r = -ENOMEM; r = -ENOMEM;
goto dqm_unlock; goto dqm_unlock;
} }
if (!mqd->get_wave_state) { if (!mqd_mgr->get_wave_state) {
r = -EINVAL; r = -EINVAL;
goto dqm_unlock; goto dqm_unlock;
} }
r = mqd->get_wave_state(mqd, q->mqd, ctl_stack, ctl_stack_used_size, r = mqd_mgr->get_wave_state(mqd_mgr, q->mqd, ctl_stack,
save_area_used_size); ctl_stack_used_size, save_area_used_size);
dqm_unlock: dqm_unlock:
dqm_unlock(dqm); dqm_unlock(dqm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment