aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/sched/topology.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-06-04 12:31:52 +0530
committerIngo Molnar <mingo@kernel.org>2019-07-25 15:51:56 +0200
commit60e17f5cef838e9ca7946ced208ceddcec6c315d (patch)
treea7405fc5e2f99da6e99c341c1dad46679cb008de /include/linux/sched/topology.h
parentsched/isolation: Prefer housekeeping CPU in local node (diff)
downloadwireguard-linux-60e17f5cef838e9ca7946ced208ceddcec6c315d.tar.xz
wireguard-linux-60e17f5cef838e9ca7946ced208ceddcec6c315d.zip
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 <viresh.kumar@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lkml.kernel.org/r/b477ac75a2b163048bdaeb37f57b4c3f04f75a31.1559631700.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched/topology.h')
0 files changed, 0 insertions, 0 deletions