sched: Consider runnable load average in move_tasks()
authorAlex Shi <alex.shi@intel.com>
Thu, 20 Jun 2013 02:18:51 +0000 (10:18 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Jun 2013 08:07:36 +0000 (10:07 +0200)
commita003a25b227d59ded9197ced109517f037d01c27
tree879a7f31942addac4420006a5e7c871c36cc92b4
parentb92486cbf2aa230d00f160664858495c81d2b37b
sched: Consider runnable load average in move_tasks()

Aside from using runnable load average in background, move_tasks is
also the key function in load balance. We need consider the runnable
load average in it in order to make it an apple to apple load
comparison.

Morten had caught a div u64 bug on ARM, thanks!

Thanks-to: Morten Rasmussen <morten.rasmussen@arm.com>
Signed-off-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1371694737-29336-8-git-send-email-alex.shi@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c