Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp403616pxb; Sat, 6 Mar 2021 03:45:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh3Wqr+hvI8bGbiL5lC7NcRFu7h+sy/cdl0Uw1wrX48afYl5LzyGRcw98lGZWqGJUCPJ8r X-Received: by 2002:a17:906:eb4e:: with SMTP id mc14mr6409465ejb.169.1615031131021; Sat, 06 Mar 2021 03:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615031131; cv=none; d=google.com; s=arc-20160816; b=KHoBuHS/47Y5PEtf/j6QnN5YuH5ptJLnc74EjL3m5FTgAoYJ6meczcE9ZxZ0yKPNSc hzMWXBDEGQ6FVLdMSAJRN2SPdMPmFuGhPHHSbbk5VzuVLH4VktDRTap7WEtFkCrlYRSA OPXL9nUBjCaMRlZ6lFsCeI5VRPjsPqzEUu7baj1rMo/2cRciBOhOmTMW/e/jtvyCzQrO HtFjb7V06XccXPOddCsUlD5uh0sINJw7L8HUSAUu2lXmRzG+1tQ5oI1s708cNkAEmEEa ffQcAhcpbN0qh5ULMQ342JSKz6z9OfI0e1xKdPtlc4/3RuNBRn0f7hFRfMA1/fZl9T5C /6qA== 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=zs+VJOUMwg1PAWCcQQoMloWeGSg1Pnuhm1/TstM1w6k=; b=vtfT6Iei/X0/Fy3RLT37m5ls8ivAwZ3A9zRdi8PFLPNceVQLmVfp/VquS2VonHa16b LcfgSM13Hy3ZBkczB2mgr959eg1fQ9rQdoceZqxe60Cs2OJMqNBBfndFeBOwqTpcuQmR vZEijN0fIasAmvWZcAj1bvHvVs8sbRe8cIUtKjJEaw1yBicgAhziIn4U8j23lS3S1eyT Ipy03de9ThNrq9oZ1UKI139W3g2NSyOBCVKc3F5R550vWsrX5aGTKww90AJtyUVuuSpW wkg/0X23mNTcJ6aBkQC8O/tKLQAvedequWJZXvTKXJ0N6BzvkQswUbB4XMwf+T/37BdZ CUWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OglZElzU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 a19si3306159ejt.403.2021.03.06.03.45.08; Sat, 06 Mar 2021 03:45:31 -0800 (PST) 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=OglZElzU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231327AbhCFLmv (ORCPT + 99 others); Sat, 6 Mar 2021 06:42:51 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:34364 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbhCFLmZ (ORCPT ); Sat, 6 Mar 2021 06:42:25 -0500 Date: Sat, 06 Mar 2021 11:42:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1615030943; 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=zs+VJOUMwg1PAWCcQQoMloWeGSg1Pnuhm1/TstM1w6k=; b=OglZElzUNymy3NhqP8PGaegYMamR+34act4TPt1gUCy5Oa1JWaVC0OGQje71lkycrDfKSG 4eaQSvEN1E2v66PLsOyEKhjLtJ+4U2tIlRUbspAkmBUwoLCFhxvmW1GJNQWPndcRbTBQCC H0rfA7en9uoiasu1QKZotOW8C507j51+FqdDonOregBseLml8EbXsNEHPZSSw/+ZOva8fW 1vAWdiSiR0PFBgaVhYXpRnJFdOk+ZFg/3urNHQ9vjCgyUDl9MPLjBn3xh8xoNPvEgKMoAd vDOr1sLn9bA3CSIj3XeNAftWyAnUuxuTgEwtonaJhH7ZoYRSB2mo7GYpL5KqoQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1615030943; 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=zs+VJOUMwg1PAWCcQQoMloWeGSg1Pnuhm1/TstM1w6k=; b=7mweAeHCcE7moQg39CyU2m9zlF/8z3Lf97/CgpKDNsSqa0pBZQyXs+pxr3eMP0wXhownpF vTsnQpEszwWTi2Bg== From: "tip-bot2 for Vincent Guittot" 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: Remove unused return of _nohz_idle_balance Cc: Vincent Guittot , "Peter Zijlstra (Intel)" , Ingo Molnar , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210224133007.28644-3-vincent.guittot@linaro.org> References: <20210224133007.28644-3-vincent.guittot@linaro.org> MIME-Version: 1.0 Message-ID: <161503094327.398.7960967828545812412.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: ab2dde5e98db23387147fb4e7a52b6cf8141cdb3 Gitweb: https://git.kernel.org/tip/ab2dde5e98db23387147fb4e7a52b6cf8141cdb3 Author: Vincent Guittot AuthorDate: Wed, 24 Feb 2021 14:30:02 +01:00 Committer: Ingo Molnar CommitterDate: Sat, 06 Mar 2021 12:40:21 +01:00 sched/fair: Remove unused return of _nohz_idle_balance The return of _nohz_idle_balance() is not used anymore so we can remove it Signed-off-by: Vincent Guittot Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Reviewed-by: Valentin Schneider Link: https://lkml.kernel.org/r/20210224133007.28644-3-vincent.guittot@linaro.org --- kernel/sched/fair.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 806e16f..6a458e9 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10354,10 +10354,8 @@ out: * Internal function that runs load balance for all idle cpus. The load balance * can be a simple update of blocked load or a complete load balance with * tasks movement depending of flags. - * The function returns false if the loop has stopped before running - * through all idle CPUs. */ -static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags, +static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags, enum cpu_idle_type idle) { /* Earliest time when we have to do rebalance again */ @@ -10367,7 +10365,6 @@ static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags, int update_next_balance = 0; int this_cpu = this_rq->cpu; int balance_cpu; - int ret = false; struct rq *rq; SCHED_WARN_ON((flags & NOHZ_KICK_MASK) == NOHZ_BALANCE_KICK); @@ -10447,15 +10444,10 @@ static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags, WRITE_ONCE(nohz.next_blocked, now + msecs_to_jiffies(LOAD_AVG_PERIOD)); - /* The full idle balance loop has been done */ - ret = true; - abort: /* There is still blocked load, enable periodic update */ if (has_blocked_load) WRITE_ONCE(nohz.has_blocked, 1); - - return ret; } /*