drm/scheduler: move idle entities to scheduler with less load v2
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Wed, 1 Aug 2018 08:20:02 +0000 (13:50 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:46 +0000 (11:09 -0500)
commitdf0ca30838eeddbd34d7573cdbfaf88c56ad3e65
tree157e61d6e33943a831cea978ee76feba742ce8e5
parent97ffa35b5dec4e68baa85e626b69ae4949a4ca2a
drm/scheduler: move idle entities to scheduler with less load v2

This is the first attempt to move entities between schedulers to
have dynamic load balancing. We just move entities with no jobs for
now as moving the ones with jobs will lead to other compilcations
like ensuring that the other scheduler does not remove a job from
the current entity while we are moving.

v2: remove unused variable and an unecessary check

Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/gpu_scheduler.c