sched: Fix CACHE_HOT_BUDY condition
authorHillf Danton <dhillf@gmail.com>
Tue, 10 Jun 2014 08:58:43 +0000 (10:58 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Jun 2014 16:29:59 +0000 (18:29 +0200)
When computing cache hot, we should check if the migration dst cpu is idle,
instead of the current cpu. Though they are same in normal balancing, that
is false nowadays in nohz idle balancing at least.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Hillf Danton <hillf.zj@alibaba-inc.com>
Cc: Mike Galbraith <mgalbraith@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140607090452.4696E301D2@webmail.sinamail.sina.com.cn
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c

Simple merge