summaryrefslogtreecommitdiff
path: root/kernel/debug
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2015-06-01 20:29:11 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:02:12 -0700
commit82cf54e7d08bd495f417b3816c798f51d0f5daa3 (patch)
treeded085d37cec6d5ad002e5cdff4e24cc5ba22ece /kernel/debug
parentde52c5fce5637f2c7ca5e1344502f2ffd4f29928 (diff)
sched: iterate search CPUs starting from prev_cpu for optimization
Function best_small_task_cpu() looks for a mostly idle CPU and returns it as the best CPU for a given small task. At present, however, it cannot break the CPU search loop when the function found a mostly idle CPU but continues to iterate CPU search loop because the function needs to find and return the given task's previous CPU as the best CPU to avoid unnecessary task migration when the previous CPU is mostly idle. Optimize the function best_small_task_cpu() to iterate search CPUs starting from the given task's CPU so it can break the loop as soon as mostly idle CPU found. This optimization saves few hundreds ns spent by the function and doesn't make any functional change. CRs-fixed: 849655 Change-Id: I8c540963487f4102dac4d54e9f98e24a4a92a7b3 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions