Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1032481pxb; Thu, 4 Mar 2021 01:10:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAMgsu/fxqgEqPS/C7W/yI5luD1phg3Fx2owJqtqpCGDtbcT49cZjjSTBh6BAWRfn4LZAe X-Received: by 2002:a17:906:f891:: with SMTP id lg17mr3157739ejb.69.1614849057246; Thu, 04 Mar 2021 01:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614849057; cv=none; d=google.com; s=arc-20160816; b=JWJV3SXwvFHFkZCM/C1He3hHxJMDpLC/1hg/mu1Dvv+nXN7BCl886qkbHvjbvPShKP ZR2ToM/sB28brfrlIEuxeGd7YJjUnx5eorp57yuidZzZ6hUdX5snwNhYJtB/s0vi/e/z hpYJsWZe9C9CQmGvQRdnmdynTaJS4ReEmGiH1c/BYfX908M2xK1o2MyJvoNYw1/Fo5jL 3avZnxnPsOJtho1Ty1SMdkJRcNxl9pVvDf2oggcprjOIQWMTN3St/6BXYm0gPI9dvTip KI55imqZmTJH4hLhjmg3uDLmXmMC94ahKsQAegc5lUZkgamz9PFNn1A9FLwN6lDYA+wd G87A== 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=hTABHRhSxorg5dEuIvf42wRxUExBongMRqDYhCdL28U=; b=OJin9Oj8X9uUxzP+u8dHXNSUHwMbDSQa627jGND7VNuNldLZ9ZWwMXxKuSTHOc20UX qVJCa3chRVpHhFOihWlOxYdJJKhrm+PpHpxE3utYbNDQsWU/5YT/WVAZBtx/dle6FIXz O3U0W0hThDFiKgAx+bb7xoVvveE1uhR1u4EvoSfhPIOn9tyOU+7rPQxY+IlS8+As1UwX vqPfKA3ySilH2xr4Oadkdc5ZH38UeYhR8g3HAymVt+oKOfch4cYeqNgR11KA4PLSxfd5 NlV0a6avBEZM/4ZBaN4RTaXGTq2jtwndST2WtPeutKf1QuPj743OiWh+zomb+06Gle13 ydKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=q9XMpYOM; 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 dp16si16795494ejc.564.2021.03.04.01.10.30; Thu, 04 Mar 2021 01:10:57 -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=q9XMpYOM; 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 S243069AbhCCOI5 (ORCPT + 99 others); Wed, 3 Mar 2021 09:08:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1842925AbhCCKWg (ORCPT ); Wed, 3 Mar 2021 05:22:36 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 927FDC08EC44; Wed, 3 Mar 2021 01:49:40 -0800 (PST) Date: Wed, 03 Mar 2021 09:49:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1614764979; 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=hTABHRhSxorg5dEuIvf42wRxUExBongMRqDYhCdL28U=; b=q9XMpYOMK0nyDwxbgnrRPA/IAEdbY6FoOWKBt6tfKbr67sMMnUYV0+Wo1jkVbd3NkcoaCb tpFGzYNHhhDiaPbcHsUd7VfsEBbEuTtVOLPhKwOx9Ab2jAgIHXsJFfBQmwgqcUm+9jQBzE KahRAVLZFW7obh0rkYklsZYJjtd/7PRGb5NBL+a7YY/VtTmjNkkV7zK5R+hr6nUO2TvIk3 9s0lVyvViz60WHApQoJvpND1f6yoik/LB8yTXKCW6s0p9Ozx9ZhaDp56TO7Ds48C23RBVe j3vtfi3v2+4sv2xi9/sqr3I1vNHlEVZKd7ul/DqayGBHbPW14/aZ0jVaWH/UNQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1614764979; 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=hTABHRhSxorg5dEuIvf42wRxUExBongMRqDYhCdL28U=; b=lNTIDEKh0NbFjQ75V8kEfbCCGGl/f8stYkMTUitjWVipN5ZY7cjSCmE2tUrdSAOCqBsjIv uWJg/tXesYiLrODA== 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)" , 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: <161476497862.20312.13726115341819502260.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: f2c0af1dabdae4674fb7ddba0ac88ca78d0fe675 Gitweb: https://git.kernel.org/tip/f2c0af1dabdae4674fb7ddba0ac88ca78d0fe675 Author: Vincent Guittot AuthorDate: Wed, 24 Feb 2021 14:30:02 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 03 Mar 2021 10:32:59 +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) 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; } /*