sched/fair: Clean up scale confusion
authorPeter Zijlstra <peterz@infradead.org>
Fri, 6 May 2016 10:21:23 +0000 (12:21 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 May 2016 07:55:33 +0000 (09:55 +0200)
commit1be0eb2a97d756fb7dd8c9baf372d81fa9699c09
tree1031c2ea02335ca83616934ce9fb5d37472e55d4
parent444969223c81c7d0a95136b7b4cfdcfbc96ac5bd
sched/fair: Clean up scale confusion

Wanpeng noted that the scale_load_down() in calculate_imbalance() was
weird. I agree, it should be SCHED_CAPACITY_SCALE, since we're going
to compare against busiest->group_capacity, which is in [capacity]
units.

Reported-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Morten Rasmussen <morten.rasmussen@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yuyang Du <yuyang.du@intel.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c