Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967110AbbBDScH (ORCPT ); Wed, 4 Feb 2015 13:32:07 -0500 Received: from foss-mx-na.foss.arm.com ([217.140.108.86]:41768 "EHLO foss-mx-na.foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967094AbbBDScE (ORCPT ); Wed, 4 Feb 2015 13:32:04 -0500 From: Morten Rasmussen To: peterz@infradead.org, mingo@redhat.com Cc: vincent.guittot@linaro.org, dietmar.eggemann@arm.com, yuyang.du@intel.com, preeti@linux.vnet.ibm.com, mturquette@linaro.org, nico@linaro.org, rjw@rjwysocki.net, juri.lelli@arm.com, linux-kernel@vger.kernel.org Subject: [RFCv3 PATCH 41/48] sched: Introduce energy awareness into find_busiest_group Date: Wed, 4 Feb 2015 18:31:18 +0000 Message-Id: <1423074685-6336-42-git-send-email-morten.rasmussen@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423074685-6336-1-git-send-email-morten.rasmussen@arm.com> References: <1423074685-6336-1-git-send-email-morten.rasmussen@arm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 38 From: Dietmar Eggemann In case that after the gathering of sched domain statistics the current load balancing operation is still in energy-aware mode, just return the least efficient (costliest) reference. That implies the system is considered to be balanced in case no least efficient sched group was found. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Dietmar Eggemann --- kernel/sched/fair.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 36f3c77..199ffff 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7133,6 +7133,9 @@ static struct sched_group *find_busiest_group(struct lb_env *env) local = &sds.local_stat; busiest = &sds.busiest_stat; + if (env->use_ea) + return sds.costliest; + /* ASYM feature bypasses nice load balance check */ if ((env->idle == CPU_IDLE || env->idle == CPU_NEWLY_IDLE) && check_asym_packing(env, &sds)) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/