summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMorten Rasmussen <morten.rasmussen@arm.com>2016-06-22 18:03:14 +0100
committerAndres Oportus <andresoportus@google.com>2017-06-02 08:01:51 -0700
commitbc7c939b3a3adcf2cd15e33677ed9246d77e0074 (patch)
tree7b1bfa743b4837a5337d9e08dc0a770879f82349 /include/linux
parent3bb3d7e7d9588334b586084f32495f448745f343 (diff)
UPSTREAM: 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. Change-Id: Ic62bf09b53a7984143ac2431aaa69c69b204cd56 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> (cherry picked from commit eaecf41f5abf80b63c8e025fcb9ee4aa203c3038) Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions