Commit 9e3e90c5 authored by Nirmoy Das's avatar Nirmoy Das Committed by Alex Deucher

drm/scheduler: fix documentation by replacing rq_list with sched_list

This also replaces old artifacts with a correct one in drm_sched_entity_init()
declaration
Signed-off-by: default avatarNirmoy Das <nirmoy.das@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e9d4cf91
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
* @guilty: atomic_t set to 1 when a job on this queue * @guilty: atomic_t set to 1 when a job on this queue
* is found to be guilty causing a timeout * is found to be guilty causing a timeout
* *
* Note: the rq_list should have atleast one element to schedule * Note: the sched_list should have atleast one element to schedule
* the entity * the entity
* *
* Returns 0 on success or a negative error code on failure. * Returns 0 on success or a negative error code on failure.
......
...@@ -52,9 +52,9 @@ enum drm_sched_priority { ...@@ -52,9 +52,9 @@ enum drm_sched_priority {
* @list: used to append this struct to the list of entities in the * @list: used to append this struct to the list of entities in the
* runqueue. * runqueue.
* @rq: runqueue on which this entity is currently scheduled. * @rq: runqueue on which this entity is currently scheduled.
* @rq_list: a list of run queues on which jobs from this entity can * @sched_list: a list of drm_gpu_schedulers on which jobs from this entity can
* be scheduled * be scheduled
* @num_rq_list: number of run queues in the rq_list * @num_sched_list: number of drm_gpu_schedulers in the sched_list.
* @rq_lock: lock to modify the runqueue to which this entity belongs. * @rq_lock: lock to modify the runqueue to which this entity belongs.
* @job_queue: the list of jobs of this entity. * @job_queue: the list of jobs of this entity.
* @fence_seq: a linearly increasing seqno incremented with each * @fence_seq: a linearly increasing seqno incremented with each
...@@ -81,8 +81,8 @@ enum drm_sched_priority { ...@@ -81,8 +81,8 @@ enum drm_sched_priority {
struct drm_sched_entity { struct drm_sched_entity {
struct list_head list; struct list_head list;
struct drm_sched_rq *rq; struct drm_sched_rq *rq;
unsigned int num_sched_list;
struct drm_gpu_scheduler **sched_list; struct drm_gpu_scheduler **sched_list;
unsigned int num_sched_list;
enum drm_sched_priority priority; enum drm_sched_priority priority;
spinlock_t rq_lock; spinlock_t rq_lock;
...@@ -315,7 +315,7 @@ void drm_sched_rq_remove_entity(struct drm_sched_rq *rq, ...@@ -315,7 +315,7 @@ void drm_sched_rq_remove_entity(struct drm_sched_rq *rq,
int drm_sched_entity_init(struct drm_sched_entity *entity, int drm_sched_entity_init(struct drm_sched_entity *entity,
enum drm_sched_priority priority, enum drm_sched_priority priority,
struct drm_gpu_scheduler **sched_list, struct drm_gpu_scheduler **sched_list,
unsigned int num_rq_list, unsigned int num_sched_list,
atomic_t *guilty); atomic_t *guilty);
long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout); long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout);
void drm_sched_entity_fini(struct drm_sched_entity *entity); void drm_sched_entity_fini(struct drm_sched_entity *entity);
......
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