• J
    sched/fair: Remove impossible condition from find_idlest_group_cpu() · 18cec7e0
    Joel Fernandes 提交于
    find_idlest_group_cpu() goes through CPUs of a group previous selected by
    find_idlest_group(). find_idlest_group() returns NULL if the local group is the
    selected one and doesn't execute find_idlest_group_cpu if the group to which
    'cpu' belongs to is chosen. So we're always guaranteed to call
    find_idlest_group_cpu() with a group to which 'cpu' is non-local.
    
    This makes one of the conditions in find_idlest_group_cpu() an impossible one,
    which we can get rid off.
    Signed-off-by: NJoel Fernandes <joelaf@google.com>
    Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: NBrendan Jackman <brendan.jackman@arm.com>
    Reviewed-by: NVincent Guittot <vincent.guittot@linaro.org>
    Cc: Android Kernel <kernel-team@android.com>
    Cc: Atish Patra <atish.patra@oracle.com>
    Cc: Chris Redpath <Chris.Redpath@arm.com>
    Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
    Cc: EAS Dev <eas-dev@lists.linaro.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Josef Bacik <jbacik@fb.com>
    Cc: Juri Lelli <juri.lelli@arm.com>
    Cc: Len Brown <lenb@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Morten Ramussen <morten.rasmussen@arm.com>
    Cc: Patrick Bellasi <patrick.bellasi@arm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
    Cc: Rohit Jain <rohit.k.jain@oracle.com>
    Cc: Saravana Kannan <skannan@quicinc.com>
    Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Cc: Steve Muckle <smuckle@google.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vikram Mulukutla <markivx@codeaurora.org>
    Cc: Viresh Kumar <viresh.kumar@linaro.org>
    Link: http://lkml.kernel.org/r/20171215153944.220146-3-joelaf@google.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
    18cec7e0
fair.c 260.1 KB