]> asedeno.scripts.mit.edu Git - linux.git/commit
sched/fair: Correct unit of load_above_capacity
authorMorten Rasmussen <morten.rasmussen@arm.com>
Fri, 29 Apr 2016 19:32:40 +0000 (20:32 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 May 2016 07:55:33 +0000 (09:55 +0200)
commitcfa10334318d8212d007da8c771187643c9cef35
treeb887d368df12d1f2a2f14e87023adcda2c2ecdd5
parent1be0eb2a97d756fb7dd8c9baf372d81fa9699c09
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>
kernel/sched/fair.c