sched: Simplify can_migrate_task()
authorZhang Hang <bob.zhanghang@huawei.com>
Wed, 10 Apr 2013 06:04:55 +0000 (14:04 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Apr 2013 09:15:45 +0000 (11:15 +0200)
commit4e2dcb73aecbde9fe4e3137c9ea35cb6aa6cb286
treed3011ead0af5e93ae0312ddf448dd6caae3a0cd3
parent28b4a521f618d9722bc780ea38b44718ce0fe283
sched: Simplify can_migrate_task()

At this point tsk_cache_hot is always true, so no need to check it.

Signed-off-by: Zhang Hang <bob.zhanghang@huawei.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/51650107.9040606@huawei.com
[ Also remove unnecessary schedstat #ifdefs. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c