diff options
author | Nayan Deshmukh <nayan26deshmukh@gmail.com> | 2018-07-13 15:21:13 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-13 14:45:58 -0500 |
commit | 8dc9fbbf274b7b2a647e06141aee70ffabf6dbc0 (patch) | |
tree | 03fb6aa2aae4331e013902b60afedc6bf18ea118 /include/drm | |
parent | b7d85e1db32ea85b09f58f416da48f44285ff41f (diff) | |
download | linux-8dc9fbbf274b7b2a647e06141aee70ffabf6dbc0.tar.gz linux-8dc9fbbf274b7b2a647e06141aee70ffabf6dbc0.tar.bz2 linux-8dc9fbbf274b7b2a647e06141aee70ffabf6dbc0.zip |
drm/scheduler: add a pointer to scheduler in the rq
This patch is in preparation for a better load balancing in
scheduler. It allows us to associate entities with the
run queues instead of binding them to a scheduler.
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/gpu_scheduler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 4214ceb71c05..43e93d6077cf 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_scheduler.h @@ -93,6 +93,7 @@ struct drm_sched_entity { * struct drm_sched_rq - queue of entities to be scheduled. * * @lock: to modify the entities list. + * @sched: the scheduler to which this rq belongs to. * @entities: list of the entities to be scheduled. * @current_entity: the entity which is to be scheduled. * @@ -102,6 +103,7 @@ struct drm_sched_entity { */ struct drm_sched_rq { spinlock_t lock; + struct drm_gpu_scheduler *sched; struct list_head entities; struct drm_sched_entity *current_entity; }; |