drm/sched: select new rq even if there is only one v3
authorChristian König <christian.koenig@amd.com>
Sat, 20 Feb 2021 08:50:42 +0000 (09:50 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 8 Mar 2021 13:06:17 +0000 (14:06 +0100)
commitac4eb83ab255de9c31184df51fd1534ba36fd212
tree9d68a6b4e2f4bdf6c19de0542a8f77be4e4efeb4
parenta9cdf68092908313320c6959c4e1bdfdb7103613
drm/sched: select new rq even if there is only one v3

This is necessary when changing priorities of an entity.

v2: test the sched_list instead of num_sched.
v3: set the sched_list to NULL when there is only one entry

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210305125155.2312-1-christian.koenig@amd.com
drivers/gpu/drm/scheduler/sched_entity.c