Commit 2d030d3e authored by Yong Zhao's avatar Yong Zhao Committed by Alex Deucher

drm/amdkfd: Rename create_cp_queue() to init_user_queue()

create_cp_queue() could also work with SDMA queues, so we should rename
it. It only initialize the data values rather than creating queues.
Signed-off-by: default avatarYong Zhao <Yong.Zhao@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e47a8b52
...@@ -162,7 +162,7 @@ void pqm_uninit(struct process_queue_manager *pqm) ...@@ -162,7 +162,7 @@ void pqm_uninit(struct process_queue_manager *pqm)
pqm->queue_slot_bitmap = NULL; pqm->queue_slot_bitmap = NULL;
} }
static int create_cp_queue(struct process_queue_manager *pqm, static int init_user_queue(struct process_queue_manager *pqm,
struct kfd_dev *dev, struct queue **q, struct kfd_dev *dev, struct queue **q,
struct queue_properties *q_properties, struct queue_properties *q_properties,
struct file *f, unsigned int qid) struct file *f, unsigned int qid)
...@@ -251,7 +251,7 @@ int pqm_create_queue(struct process_queue_manager *pqm, ...@@ -251,7 +251,7 @@ int pqm_create_queue(struct process_queue_manager *pqm,
goto err_create_queue; goto err_create_queue;
} }
retval = create_cp_queue(pqm, dev, &q, properties, f, *qid); retval = init_user_queue(pqm, dev, &q, properties, f, *qid);
if (retval != 0) if (retval != 0)
goto err_create_queue; goto err_create_queue;
pqn->q = q; pqn->q = q;
...@@ -272,7 +272,7 @@ int pqm_create_queue(struct process_queue_manager *pqm, ...@@ -272,7 +272,7 @@ int pqm_create_queue(struct process_queue_manager *pqm,
goto err_create_queue; goto err_create_queue;
} }
retval = create_cp_queue(pqm, dev, &q, properties, f, *qid); retval = init_user_queue(pqm, dev, &q, properties, f, *qid);
if (retval != 0) if (retval != 0)
goto err_create_queue; goto err_create_queue;
pqn->q = q; pqn->q = q;
......
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