aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/wait.h
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2016-08-22 15:00:41 +0100
committerIngo Molnar <mingo@kernel.org>2016-09-30 10:53:19 +0200
commitab522e33f91799661aad47bebb691f241a9f6bb8 (patch)
treea1dd9e6e8a5bbdbf3e8aceca5e05e20c8009f407 /include/linux/wait.h
parentsched/core, x86/topology: Fix NUMA in package topology bug (diff)
downloadlinux-dev-ab522e33f91799661aad47bebb691f241a9f6bb8.tar.xz
linux-dev-ab522e33f91799661aad47bebb691f241a9f6bb8.zip
sched/fair: Fix fixed point arithmetic width for shares and effective load
Since commit: 2159197d6677 ("sched/core: Enable increased load resolution on 64-bit kernels") we now have two different fixed point units for load: - 'shares' in calc_cfs_shares() has 20 bit fixed point unit on 64-bit kernels. Therefore use scale_load() on MIN_SHARES. - 'wl' in effective_load() has 10 bit fixed point unit. Therefore use scale_load_down() on tg->shares which has 20 bit fixed point unit on 64-bit kernels. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1471874441-24701-1-git-send-email-dietmar.eggemann@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/wait.h')
0 files changed, 0 insertions, 0 deletions