[tip:sched/core] sched: Simplify can_migrate_task()

2013-04-10 Thread tip-bot for Zhang Hang
Commit-ID: 4e2dcb73aecbde9fe4e3137c9ea35cb6aa6cb286 Gitweb: http://git.kernel.org/tip/4e2dcb73aecbde9fe4e3137c9ea35cb6aa6cb286 Author: Zhang Hang AuthorDate: Wed, 10 Apr 2013 14:04:55 +0800 Committer: Ingo Molnar CommitDate: Wed, 10 Apr 2013 11:15:45 +0200 sched: Simplify

[PATCH] sched: Remove redundant code from can_migrate_task()

2013-04-09 Thread Zhang Hang
There is no opportunity to return 1 if tsk_cache_hot is true and the expression (env->sd->nr_balance_failed > env->sd->cache_nice_tries) is false. Meanwhile, it's unnecessary to judge whether tsk_cache_hot is true or false after being filtered by previous judgment. Signe