summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2015-06-01 21:07:33 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:02:13 -0700
commit024505821e55bfa768bf1a8fe64a84ae689e1abe (patch)
tree50777b9753d09bad2040e7e12a85b0f05a37dc42 /kernel/sched/sched.h
parent82cf54e7d08bd495f417b3816c798f51d0f5daa3 (diff)
sched: look for least busy and fallback CPU only when it's needed
Function best_small_task_cpu() has bias on mostly idle CPUs and shallow cstate CPUs. Thus chance of needing to find the least busy or the least power cost fallback CPU is quite rare typically. At present, however, the function finds those two CPUs always unnecessarily for most of time. Optimize the function by amending it to look for the least busy CPU and the least power cost fallback CPU only when those are in need. This change is solely for optimization and doesn't make functional changes. CRs-fixed: 849655 Change-Id: I5eca11436e85b448142a7a7644f422c71eb25e8e Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/sched/sched.h')
0 files changed, 0 insertions, 0 deletions