]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sched: implement and export drm_sched_pick_best
authorNirmoy Das <nirmoy.das@amd.com>
Fri, 13 Mar 2020 10:39:27 +0000 (11:39 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Mar 2020 20:21:32 +0000 (16:21 -0400)
commit0b832f268f2335c2bbcbd524d91aadb8b1603375
tree3e6c3e650937fb3ba35cc50ae0ed9fda46044a9d
parent5a88fdde7e83e38546754826288089be1b8a2d06
drm/sched: implement and export drm_sched_pick_best

Remove drm_sched_entity_get_free_sched() and use the logic of picking
the least loaded drm scheduler from a drm scheduler list to implement
drm_sched_pick_best(). This patch also exports drm_sched_pick_best() so
that it can be utilized by other drm drivers.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/sched_entity.c
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h