Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp340036lqh; Thu, 28 Mar 2024 03:56:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmcnWPv4qWVbMVxa9oAd+AJiI9v0O1WUXp9YH795PvXf7VZ3mFprSznwJD5hlzQckM9kgtLYDZgfVyaPBQzW4cVR1y1tRO3KQWiy95Hw== X-Google-Smtp-Source: AGHT+IHhvdR/UM4fPsDZcMj9V6bYR9e+64U7fe/zgyHCSohxZu0u+pGr7T1U7Ua3BdFhfK1AViI4 X-Received: by 2002:a17:906:1b45:b0:a4e:2691:49a6 with SMTP id p5-20020a1709061b4500b00a4e269149a6mr608968ejg.10.1711623383395; Thu, 28 Mar 2024 03:56:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711623383; cv=pass; d=google.com; s=arc-20160816; b=yqcTnZDCS1APg+vBqH9+FhOxMnypD1a0pFCWwEKKz6MeZW95ntQiLJSat6IvDYalMV mPbFNgN6jjJJO79xKJOrU5A1YglUXNUkrmXnCg91AACq0t8C+3kL5+G462KSWEKz2/zt cZLgqH77FVcQYRdEaLIVjIV3C1FVqnaiYn+ZSQiBXzsfziWcD6q6TmQ4M8JKHj4dmKn6 wcPTpwqFCxC2CYUVTC1thDuorNDi6qMtidiGaZe3zXN7L+9khXNiMIUokPuiUKZHmYbW cYGYEc/IjnN2cgrGZ/hi69+VaCvL3DlRyvLQhyirPPdULVmd1ml1YI6c7EkLeL28r0nF vIVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=ko7uZVM1Z5QV4BXSrnVVCvEPdJXVSv0HeGMT9nctmIo=; fh=HTl5akuVXpDVLQhphI+cgiUP0Mq0a87e3xnpx8ES6UE=; b=tO1XU5MXmqOBnTU8giQg2+KmQkifVQlGwRVK4U0tO3ooVFJ3mEOL+I2SnL5ZsR87Lx TGUJpLDNQuNrz7ZQCGZny1u3w44a1ogdqmHiP4bKaDjSmC3FgVkmcQWtOuuFPP3RBWO1 L9+xHjSih5GJbDhbrzX2Zwkzy0LmagayEtrLDrvyVvg2YE4YTnqi+UEcBM0sK0nocobl XtF/fYhAOC4YagTcSDbplQOqhuq6bSpZAuEQsqXJ4jm3uBydoSVGt7OhUj2FwYk301u5 kbKM+OFewjGwy7bIytrTPB7G1c0XYZuGQ2KlraNsQqNNDrscPEX7NQrG/9+yIvhdx+Fs kDaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=TN+C5W4m; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-122800-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s15-20020a170906454f00b00a47322ceaecsi629247ejq.27.2024.03.28.03.56.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 03:56:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122800-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=TN+C5W4m; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-122800-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2259B1F263BA for ; Thu, 28 Mar 2024 10:56:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA0FC7E0EE; Thu, 28 Mar 2024 10:56:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TN+C5W4m"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2EZVzgSJ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E7377BAFF; Thu, 28 Mar 2024 10:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711623372; cv=none; b=FhQRVqt7BdEi3nwXDBI3fS+NeUoCuieXJ6r6RTISzauEzMu38foSjniVmWQZ5qneZT+mLeqHKX3NEOyLjMMcb+Y93xroS4cMF1BynaqP6PjC0UXW0y0IvCaHi8jIjDwDLup2Ug7lu+vfflRR5rzNxYmxWIjTpeQHx+wokCL8a9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711623372; c=relaxed/simple; bh=o3cow79llrvVk5cSoNfMQnm8w++hEv4cgtGexS8/E8s=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=c3niqwhZswaosSvAozCczuO2Z0dZc3oXGwKJGj5snfxkE4FVzKcjdEpOkbJYn+2PqEsqI3KTS9TWEvHLWKR7WImn7nYPDoCoPJh0ciMXHBDcPAXXXw/YV52cm0OVX1jiFYnsNi1/xYfkXWzcfF0rAr31E6r5cKltLNGgC1ZULSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TN+C5W4m; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2EZVzgSJ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 28 Mar 2024 10:56:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1711623368; 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=ko7uZVM1Z5QV4BXSrnVVCvEPdJXVSv0HeGMT9nctmIo=; b=TN+C5W4misJaf+0wi3MoHszJQtVpSrmlL5DB9bV3IL2YinqFvP57c4TTw9eyeKLlG1q0Y5 dc7IgoqzaH/GQJBHzbk5eweP9kzdmS9IEze/oeojtvYD2dgDCW7WClDp3QeGfqjVLV5aYu owMLbcmGZJIQ53Ebn8Xw5NJjLy6wi8OLzn3gsWrip/NCeLx1hNqtsYB/RnbxgwBgFBLWPw JWQCjAdPyf9+oYRQjzoi0Jx+43QBmOPV6dbemGM3MNqWAFKVy2Q0SQ6az7ltcQz4nxL9kq 2hNRmQj5KYCVBT85iu+e7xSwvkgH9w77ObNBq0VPvuUbHrE44ih1entNkHJdsQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711623368; 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=ko7uZVM1Z5QV4BXSrnVVCvEPdJXVSv0HeGMT9nctmIo=; b=2EZVzgSJcV+cCg13q+vxwOFfgR9k4Igq2DqIfKE+hYYJBUUDU1HyYQYYxvzoDixIqh12sn PRIaWhSnAHIqQqAA== From: "tip-bot2 for Ingo Molnar" 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: Rename {set|get}_rd_overload() to {set|get}_rd_overloaded() Cc: Ingo Molnar , Qais Yousef , Shrikanth Hegde , Vincent Guittot , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171162336779.10875.12104005368795630494.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the sched/core branch of tip: Commit-ID: 76cc4f91488af0a808bec97794bfe434dece7d67 Gitweb: https://git.kernel.org/tip/76cc4f91488af0a808bec97794bfe434dece7d67 Author: Ingo Molnar AuthorDate: Thu, 28 Mar 2024 11:41:31 +01:00 Committer: Ingo Molnar CommitterDate: Thu, 28 Mar 2024 11:41:31 +01:00 sched/fair: Rename {set|get}_rd_overload() to {set|get}_rd_overloaded() Follow the rename of the root_domain::overloaded flag. Signed-off-by: Ingo Molnar Cc: Qais Yousef Cc: Shrikanth Hegde Cc: Vincent Guittot Cc: Peter Zijlstra Link: https://lore.kernel.org/r/ZgVHq65XKsOZpfgK@gmail.com --- kernel/sched/fair.c | 4 ++-- kernel/sched/sched.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0cc0582..bf10665 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10657,7 +10657,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd if (!env->sd->parent) { /* update overload indicator if we are at root domain */ - set_rd_overload(env->dst_rq->rd, sg_status & SG_OVERLOAD); + set_rd_overloaded(env->dst_rq->rd, sg_status & SG_OVERLOAD); /* Update over-utilization (tipping point, U >= 0) indicator */ set_rd_overutilized_status(env->dst_rq->rd, @@ -12390,7 +12390,7 @@ static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf) rcu_read_lock(); sd = rcu_dereference_check_sched_domain(this_rq->sd); - if (!get_rd_overload(this_rq->rd) || + if (!get_rd_overloaded(this_rq->rd) || (sd && this_rq->avg_idle < sd->max_newidle_lb_cost)) { if (sd) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index cddc479..c7e7ae1 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -930,14 +930,14 @@ extern void rq_attach_root(struct rq *rq, struct root_domain *rd); extern void sched_get_rd(struct root_domain *rd); extern void sched_put_rd(struct root_domain *rd); -static inline int get_rd_overload(struct root_domain *rd) +static inline int get_rd_overloaded(struct root_domain *rd) { return READ_ONCE(rd->overloaded); } -static inline void set_rd_overload(struct root_domain *rd, int status) +static inline void set_rd_overloaded(struct root_domain *rd, int status) { - if (get_rd_overload(rd) != status) + if (get_rd_overloaded(rd) != status) WRITE_ONCE(rd->overloaded, status); } @@ -2541,7 +2541,7 @@ static inline void add_nr_running(struct rq *rq, unsigned count) #ifdef CONFIG_SMP if (prev_nr < 2 && rq->nr_running >= 2) { - set_rd_overload(rq->rd, SG_OVERLOAD); + set_rd_overloaded(rq->rd, SG_OVERLOAD); } #endif