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)
commit5d5e2b1bcbdc996e72815c03fdc5ea82c4642397
treeca7417f06a98918e05142c9e52481e5eaea8d894
parentbb97fc31647539f1f102eed646a95e200160a150
sched: Fix CACHE_HOT_BUDY condition

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