aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2019-06-04 12:31:52 +0530
committerIngo Molnar <[email protected]>2019-07-25 15:51:56 +0200
commit60e17f5cef838e9ca7946ced208ceddcec6c315d (patch)
treea7405fc5e2f99da6e99c341c1dad46679cb008de /drivers/gpu/drm/amd/amdgpu
parente0e8d4911ed2695b12c3a01c15634000ede9bc73 (diff)
sched/fair: Introduce fits_capacity()
The same formula to check utilization against capacity (after considering capacity_margin) is already used at 5 different locations. This patch creates a new macro, fits_capacity(), which can be used from all these locations without exposing the details of it and hence simplify code. All the 5 code locations are updated as well to use it.. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vincent Guittot <[email protected]> Link: https://lkml.kernel.org/r/b477ac75a2b163048bdaeb37f57b4c3f04f75a31.1559631700.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions