diff options
| author | Joonwoo Park <joonwoop@codeaurora.org> | 2015-10-28 15:46:21 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:02:37 -0700 |
| commit | 60abcbcfdfe548468e6c75bdf72cd46ba45d53b6 (patch) | |
| tree | ef1f6102481132a2d35660556a5eaeadc20007d6 /kernel | |
| parent | 0254e508432c631a00905a13fc5490067646d406 (diff) | |
sched: print sched_task_load always
At present select_best_cpu() bails out when best idle CPU found without
printing sched_task_load trace event. Print it.
Change-Id: Ie749239bdb32afa5b1b704c048342b905733647e
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/fair.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 463f27b60d96..f6bba6dfdf9e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3277,8 +3277,10 @@ static int select_best_cpu(struct task_struct *p, int target, int reason, } } - if (best_idle_cpu >= 0) - return best_idle_cpu; + if (best_idle_cpu >= 0) { + best_cpu = best_idle_cpu; + goto done; + } if (best_cpu < 0 || boost) { if (unlikely(best_capacity_cpu < 0)) @@ -3290,6 +3292,7 @@ static int select_best_cpu(struct task_struct *p, int target, int reason, best_cpu = best_sibling_cpu; } +done: trace_sched_task_load(p, boost, reason, sync, need_idle, best_cpu); return best_cpu; |
