Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2489950pxb; Tue, 21 Sep 2021 00:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCdUos7iJPdm1qdOGO9671UfE8J732XxqJ124Md38hWg4FPNl1uEZhE0jkbqKwp5+YfqV/ X-Received: by 2002:a17:906:b14d:: with SMTP id bt13mr32463271ejb.39.1632209450126; Tue, 21 Sep 2021 00:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632209450; cv=none; d=google.com; s=arc-20160816; b=zJxxmhPQkdzrgrWLtjtriBVnFMYKiokNANNzWL5HwquYOGpkExCgU9WNlO3aMYd2tG F5sEhxbLe8ZX1mslA5r9kLOeBz2hdFWSax/duxOlnyf0JwYG7WF7NbRvf3p4pU24uYxW 3NGUKnlwawI91HeHkbpwVSLVuNUVdDko6OmSJ2MCfhhvQNTbaqjVfjbpugM4snwyVdF5 MtIw/9x1iWeIopmmW8BJTbgtWTHyuLn/z3ads7mg7bhne44jgTE+eOOvmUyvoGJ1wP6Y Ew/P/wRFbGUaDzW7H7SIEQaBiAgI8WCHjUAl7CqGeqY2G0ZQ6PldFyoPUPJsQ0EKSF4a QcYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=RLXxZ1PAJGQflVJ9unYlD2Sc3zeMhSTk/LbI99+e0Ak=; b=vHh7WhtykBHuXLen87kljfLDu+3z+Ngl8epLihAHSOi7Xg75t65btzJG1Zd4ADJCwr xW6gfto3Fu02Pz/ki3gcGVBImysIKsSBy3Ft/Sbf+RMKCffo+hEaHOwY/68wPJs/AKfC qOxL3DrGJx3cgDgI5ib4INkSKILzEHJTtv18tMgSZEPbh2x86AfShbVc4ijwSsgWStgN z0YFkCQ7qej6DEdOsEjO0B2e+afa1UXZnNk9A0LhaYSJWynlmp0SZsAtaPWqNgs+5yYU JJGiRlgzRFhXvhPZTubnxgc8+ju7RrPPfE5OQU90dqZSWS/6x78EHgYs3VMwrfmvWHAx GdAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f1xx9al9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 14si16906413ejj.313.2021.09.21.00.30.25; Tue, 21 Sep 2021 00:30:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f1xx9al9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230241AbhIUH3Z (ORCPT + 99 others); Tue, 21 Sep 2021 03:29:25 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:46892 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbhIUH3W (ORCPT ); Tue, 21 Sep 2021 03:29:22 -0400 Date: Tue, 21 Sep 2021 07:27:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632209273; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RLXxZ1PAJGQflVJ9unYlD2Sc3zeMhSTk/LbI99+e0Ak=; b=f1xx9al90LqdwSbXsIDIsky+dNOA97wXspeeJi57FI+i/6cGlLTNuneX9uTIc0ZFze7hao fIO0aikNblNgwQUMjJUAIr/mbas/oItfwveJBtkCBNp4mRQNxaDBvzcNf66hrxbw4p6Sgz tHntb2FxozDtMKs4oydQh9MTpFM3x77vdS+MtT6JBABr4Gn+iWicKWLlQaTsIR9cG1dHpu mtMl52dDhoemTnUnaXusPt+ZalHwG2yD253hZ06peTuTVzKCjNjbGYJxnv4Qi6v1CvKr+S Qw+7dZainhPpLKxCq3rQcip3HnRdTEjejkZI4TpZRINXIXWbNXDdnXEdsKGbKQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632209273; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RLXxZ1PAJGQflVJ9unYlD2Sc3zeMhSTk/LbI99+e0Ak=; b=YzGXps2B+hD1Qz0Apmp7Mu3Kw9XHWKq+4uzXKwHowf1L5O3mT6w6NSQVGC4/OYDy1yNtEz K9+VoEoyXAefZSCQ== From: "tip-bot2 for Ricardo Neri" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Optimize checking for group_asym_packing Cc: Ricardo Neri , "Peter Zijlstra (Intel)" , "Joel Fernandes (Google)" , Len Brown , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210911011819.12184-4-ricardo.neri-calderon@linux.intel.com> References: <20210911011819.12184-4-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Message-ID: <163220927280.25758.10968958544939883057.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: cb0e4ee938b1a08507ded179cec3a35b4a8d75b8 Gitweb: https://git.kernel.org/tip/cb0e4ee938b1a08507ded179cec3a35b4a8d75b8 Author: Ricardo Neri AuthorDate: Fri, 10 Sep 2021 18:18:16 -07:00 Committer: Peter Zijlstra CommitterDate: Sat, 18 Sep 2021 12:18:39 +02:00 sched/fair: Optimize checking for group_asym_packing sched_asmy_prefer() always returns false when called on the local group. By checking local_group, we can avoid additional checks and invoking sched_asmy_prefer() when it is not needed. No functional changes are introduced. Signed-off-by: Ricardo Neri Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Joel Fernandes (Google) Reviewed-by: Len Brown Reviewed-by: Vincent Guittot Link: https://lkml.kernel.org/r/20210911011819.12184-4-ricardo.neri-calderon@linux.intel.com --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e26d622..d85c5a4 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8598,7 +8598,7 @@ static inline void update_sg_lb_stats(struct lb_env *env, } /* Check if dst CPU is idle and preferred to this group */ - if (env->sd->flags & SD_ASYM_PACKING && + if (!local_group && env->sd->flags & SD_ASYM_PACKING && env->idle != CPU_NOT_IDLE && sgs->sum_h_nr_running && sched_asym_prefer(env->dst_cpu, group->asym_prefer_cpu)) {