diff options
author | Morten Rasmussen <morten.rasmussen@arm.com> | 2016-04-29 21:32:40 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-05-12 09:55:33 +0200 |
commit | cfa10334318d8212d007da8c771187643c9cef35 (patch) | |
tree | b887d368df12d1f2a2f14e87023adcda2c2ecdd5 /kernel/sched/cpupri.c | |
parent | sched/fair: Clean up scale confusion (diff) | |
download | linux-cfa10334318d8212d007da8c771187643c9cef35.tar.xz linux-cfa10334318d8212d007da8c771187643c9cef35.zip |
sched/fair: Correct unit of load_above_capacity
In calculate_imbalance() load_above_capacity currently has the unit
[capacity] while it is used as being [load/capacity]. Not only is it
wrong it also makes it unlikely that load_above_capacity is ever used
as the subsequent code picks the smaller of load_above_capacity and
the avg_load
This patch ensures that load_above_capacity has the right unit
[load/capacity].
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
[ Changed changelog to note it was in capacity unit; +rebase. ]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
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>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/1461958364-675-4-git-send-email-dietmar.eggemann@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/cpupri.c')
0 files changed, 0 insertions, 0 deletions