diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2014-07-27 22:04:10 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:08 -0700 |
| commit | 8f8c8db1c5f49f90efa9e2f7656ead216a7643cb (patch) | |
| tree | 549570b92b8980b53095c4da7582f2710891a6e4 /kernel/sched/debug.c | |
| parent | 35bf2d9d10710770c8f7d070b64381f8dde54e80 (diff) | |
sched: Avoid needless migration
Restrict check_for_migration() to operate on fair_sched class tasks
only.
Also check_for_migration() can result in a call to select_best_cpu()
to look for a better cpu for currently running task on a cpu. However
select_best_cpu() can end up suggesting a cpu that is not necessarily
better than the cpu on which task is running currently. This will
result in unnecessary migration. Prevent that from happening.
Change-Id: I391cdda0d7285671d5f79aa2da12eaaa6cae42d7
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
0 files changed, 0 insertions, 0 deletions
