diff options
| author | Syed Rameez Mustafa <rameezmustafa@codeaurora.org> | 2015-05-29 16:02:41 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:02:11 -0700 |
| commit | de52c5fce5637f2c7ca5e1344502f2ffd4f29928 (patch) | |
| tree | fe3401e6fac9c39678a2b8978c7d68c19f32a1d5 /kernel/debug | |
| parent | 7ebc066cdba77f05ad4d9a593e18bc8115d5688e (diff) | |
sched: Optimize the select_best_cpu() "for" loop
select_best_cpu() is agnostic of the hardware topology. This means that
certain functions such as task_will_fit() and skip_cpu() are run
unnecessarily for every CPU in a cluster whereas they need to run only
once per cluster. Reduce the execution time of select_best_cpu() by
ensuring these functions run only once per cluster. The frequency domain
mask is used to identify CPUs that fall in the same cluster.
CRs-fixed: 849655
Change-Id: Id24208710a0fc6321e24d9a773f00be9312b75de
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
[joonwoop@codeaurora.org: added continue after clearing search_cpus.
fixed indentations with space. fixed skip_cpu() to return true when rq ==
task_rq.]
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
