Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp442959imn; Wed, 3 Aug 2022 10:22:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5M8moTu+AgdCqHLVx5ShiyXZYXPzncZFCi++xAKhc5cQOY0g6eZTR0aYo6TG1PC1BAfqlt X-Received: by 2002:a17:90b:2407:b0:1ec:dd93:511a with SMTP id nr7-20020a17090b240700b001ecdd93511amr5973247pjb.212.1659547355302; Wed, 03 Aug 2022 10:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659547355; cv=none; d=google.com; s=arc-20160816; b=lODtOlWxd0wruhGnNvlWlTWNicNN2wjKZrH+Y9xBkjff1J3kUnarVAjJ5eYp/JgpC/ cdPghkoCaiciEYkJYRv97cUlGi429eJcdDb3f4e55dR65PWopsBp5ff9U/pzrKmXZif5 vy+AxddAiKpwlyj/gFHeS1xJb5sIehBFicL++NngmaN5mnJSUFuiUIcpkPPo/IQkl/Eq LLd9HmBiR/VGsx1w/qby5sFM8xsUkEWRSXfqvo/AiXSpSoAXvrKxlkOAn5+EPAk1KHWa gl6B7Bmm8TwX0A8cz8rTmW6iQq8o0Fs9iznW+bf9tTgD20KLplDzXsNtL0NNU6moNoP8 cfUA== 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=dXSabjNJjRfwC9JFIBmyear8cE5dLFtL3ysvEWzyh9Q=; b=VgNGv8B0UNDhDI2rT5sW3kr7WbuQKI5rSKvHUjqO8rFOBMRNdSQcCo/TFuJIp+o6YO wbNLjfxMgSZfEVLe37YiSdBzbC4fEWjtGnQC/ajr9dzSwZv6c5/XHaPwSGGn2aBk3l8P jkJUUiaXX19+bF6rcjEik1lV9pf+IePu5px1zhgpQ0pzHJ0E2ZH/YxxbmcnOCTQhqG1N GJn2WYPglVQBSE42imFH2YN2faGgjOLhMxX7/vycfMJ4K4Y7pkDpZsOuogERc+iz6bRY 5Fp7rynGo0hPVNcyTUEDI2GXdIGoRZ+gldRz1GWnt3gtR1yFrmdYqkgztDqNTSXY+6Kt d9zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nob9bSrJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a170902860600b0016c39c15fb9si2569844plo.201.2022.08.03.10.22.19; Wed, 03 Aug 2022 10:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nob9bSrJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237137AbiHCRD0 (ORCPT + 99 others); Wed, 3 Aug 2022 13:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236733AbiHCRDV (ORCPT ); Wed, 3 Aug 2022 13:03:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B2A4E862; Wed, 3 Aug 2022 10:03:20 -0700 (PDT) Date: Wed, 03 Aug 2022 17:03:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1659546198; 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=dXSabjNJjRfwC9JFIBmyear8cE5dLFtL3ysvEWzyh9Q=; b=nob9bSrJp280n42Pa4q1E0LgcMknzroqzp9bmlED1L+iUbDeuRhVy6UQ/B0j3HYDBnxtxK Pm6D1Hkj31rMuvZDxNYKYpL9zQB5Mw3IJOUp471H94LHCBtuz9chJtEO2r0gfC/tGyqsJ6 hLq53NBUs4nhLn4Xsf1pvdiyZ4omyOvx91RWlMTHWTnCiI5fh56swa6fluE7mlbsoOkMiX qh1xtBF8iD5vJGpiu0jCotlKuJIqi0UYJudRN5TV/amFFxVvzIZxxej15zwmKwpaLlGmc6 jrwzRjFkZqRnN+1WQpU8WFsWert2Q2O79Er/YUDdbBLJUZ5lXxgVhRkil2zulA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1659546198; 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=dXSabjNJjRfwC9JFIBmyear8cE5dLFtL3ysvEWzyh9Q=; b=N4ZbaufxcQl9SRixIVhsnSYeyD8Tntjjo6gDIEwCxbWwkByzQ8JMj4dyY4iFOqXHpuH0FV SVkmho5ziaBbBIAQ== From: "tip-bot2 for Hao Jia" 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 parameter idle of _nohz_idle_balance() Cc: Hao Jia , Ingo Molnar , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220803130223.70419-1-jiahao.os@bytedance.com> References: <20220803130223.70419-1-jiahao.os@bytedance.com> MIME-Version: 1.0 Message-ID: <165954619718.15455.1084400841351133182.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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: d985ee9f449aafe45397ae1cf8887e9ac91d2f95 Gitweb: https://git.kernel.org/tip/d985ee9f449aafe45397ae1cf8887e9ac91d2f95 Author: Hao Jia AuthorDate: Wed, 03 Aug 2022 21:02:23 +08:00 Committer: Ingo Molnar CommitterDate: Wed, 03 Aug 2022 18:54:26 +02:00 sched/fair: Remove unused parameter idle of _nohz_idle_balance() After commit 7a82e5f52a35 ("sched/fair: Merge for each idle cpu loop of ILB"), _nohz_idle_balance()'s 'idle' parameter is not used anymore, so we can remove it. Signed-off-by: Hao Jia Signed-off-by: Ingo Molnar Reviewed-by: Vincent Guittot Link: https://lore.kernel.org/r/20220803130223.70419-1-jiahao.os@bytedance.com --- kernel/sched/fair.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 41486d9..d22c5e8 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10916,8 +10916,7 @@ static bool update_nohz_stats(struct rq *rq) * can be a simple update of blocked load or a complete load balance with * tasks movement depending of flags. */ -static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags, - enum cpu_idle_type idle) +static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags) { /* Earliest time when we have to do rebalance again */ unsigned long now = jiffies; @@ -11032,7 +11031,7 @@ static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle) if (idle != CPU_IDLE) return false; - _nohz_idle_balance(this_rq, flags, idle); + _nohz_idle_balance(this_rq, flags); return true; } @@ -11052,7 +11051,7 @@ void nohz_run_idle_balance(int cpu) * (ie NOHZ_STATS_KICK set) and will do the same. */ if ((flags == NOHZ_NEWILB_KICK) && !need_resched()) - _nohz_idle_balance(cpu_rq(cpu), NOHZ_STATS_KICK, CPU_IDLE); + _nohz_idle_balance(cpu_rq(cpu), NOHZ_STATS_KICK); } static void nohz_newidle_balance(struct rq *this_rq)