diff options
author | Christian König <christian.koenig@amd.com> | 2021-02-02 14:40:01 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-02-05 12:47:11 +0300 |
commit | f2f12eb9c32bc7a714276d8862efac2e7c41bcbe (patch) | |
tree | 255ef8e8adf963deb610ee7140fafa94d151fa52 /drivers/gpu/drm/scheduler/sched_entity.c | |
parent | f4a84e165e6d58606097dd07b5b78767a94b870c (diff) | |
download | linux-f2f12eb9c32bc7a714276d8862efac2e7c41bcbe.tar.xz |
drm/scheduler: provide scheduler score externally
Allow multiple schedulers to share the load balancing score.
This is useful when one engine has different hw rings.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Leo Liu <leo.liu@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210204144405.2737-1-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
-rw-r--r-- | drivers/gpu/drm/scheduler/sched_entity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/scheduler/sched_entity.c b/drivers/gpu/drm/scheduler/sched_entity.c index c1ac3e4003c6..92d965b629c6 100644 --- a/drivers/gpu/drm/scheduler/sched_entity.c +++ b/drivers/gpu/drm/scheduler/sched_entity.c @@ -489,7 +489,7 @@ void drm_sched_entity_push_job(struct drm_sched_job *sched_job, bool first; trace_drm_sched_job(sched_job, entity); - atomic_inc(&entity->rq->sched->score); + atomic_inc(entity->rq->sched->score); WRITE_ONCE(entity->last_user, current->group_leader); first = spsc_queue_push(&entity->job_queue, &sched_job->queue_node); |