diff options
author | Morten Rasmussen <morten.rasmussen@arm.com> | 2016-06-22 18:03:14 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-08-10 14:03:32 +0200 |
commit | eaecf41f5abf80b63c8e025fcb9ee4aa203c3038 (patch) | |
tree | 66828cd9474c5f77571323dbdf107568fc874fd1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 772bd008cd9a1d4e8ce566f2edcc61d1c28fcbe5 (diff) |
sched/fair: Optimize find_idlest_cpu() when there is no choice
In the current find_idlest_group()/find_idlest_cpu() search we end up
calling find_idlest_cpu() in a sched_group containing only one CPU in
the end. Checking idle-states becomes pointless when there is no
alternative, so bail out instead.
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dietmar.eggemann@arm.com
Cc: linux-kernel@vger.kernel.org
Cc: mgalbraith@suse.de
Cc: vincent.guittot@linaro.org
Cc: yuyang.du@intel.com
Link: http://lkml.kernel.org/r/1466615004-3503-4-git-send-email-morten.rasmussen@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions