commit | 97ffa35b5dec4e68baa85e626b69ae4949a4ca2a | [log] [tgz] |
---|---|---|
author | Nayan Deshmukh <nayan26deshmukh@gmail.com> | Wed Aug 01 13:50:01 2018 +0530 |
committer | Alex Deucher <alexander.deucher@amd.com> | Mon Aug 27 11:09:45 2018 -0500 |
tree | a1224772b9f14934e31240212528ef1ab238604e | |
parent | 249a07c05a8da9637c2eb3205f1fc739c216f707 [diff] |
drm/scheduler: add new function to get least loaded sched v2 The function selects the run queue from the rq_list with the least load. The load is decided by the number of jobs in a scheduler. v2: avoid using atomic read twice consecutively, instead store it locally 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>