Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1006093lql; Tue, 12 Mar 2024 05:01:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsLj63rNb5w+zYWwkhkHkSUVLcCUMOKrdjB7OOdrrpXG0jRKWPHaoXPVN/UstjgKls20I80jtoGZ8L+GgFQoLXc5qX0xfOPizChPD1DQ== X-Google-Smtp-Source: AGHT+IEQwFWsCC/ntxE84lHEz75wBha/W7jinN/N777m1irIASHosaoYjpRwpPToqAGbGoV8kj9U X-Received: by 2002:a05:6358:291d:b0:17e:7bec:636c with SMTP id y29-20020a056358291d00b0017e7bec636cmr196455rwb.9.1710244872187; Tue, 12 Mar 2024 05:01:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710244872; cv=pass; d=google.com; s=arc-20160816; b=ZdNxYmMx90wUDQ2Pf7gN+R915NTcmr3qKSvRJFDS5gOJ40M1hMzuspmgJYSnIsnoGX CX6hNhi50vNhqsXPS12cNyy2XeHltQpmahj454JiVC0qfy2uvwg27brKXKt+MBj86noX sgZI6BFMFFUxrLF9e4yEQnsYJlTIB39VvdnTLi/qEqm1Au647UxGPT0m++oOB/u9FP+a 6qz7Hv3IsZOQUQZLPAu8P+OoD2JbTLP8s/P7+aQlHoWSIf2XRm2a0LisfUkJkxe3QdEF 2qKwjDMoVyuuxcsflvRNTu7KVZLOwOQTzarkmDw4ZdXt1zjgIHdmEzHGOAI6wJxuk50U 0/fg== 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=ElUiyIrF/PtVcYTBy1Buyncg8p/ge/E3VzM9JW4kMqY=; fh=t4l/6dU3pfnn7MYfnMazFZzgTmO0SkRDf37FwF3qJ8A=; b=AE7iSQ6z3Smx+f44cJAiktbyapysEA/M59LzcuQe1If47ocjAojQpzqsmriyP3tMZ4 6cuqTQjpXh3nze/rInpvhj6jdkOibJAODHzrrvYHH7zAVQKce/2K0yGyYmD5w3L/yHVk lZytDbzz1Mf0C6eZqs59wCYriYXf2cTRH9LspX0PzbqAet4RHLV8OHx3t2uK8nNn1O6H 5iwX9wcZVZS9d+YLqI1lM+akcg6ClE0GaqBbfbrhBQ+K/SvCM5aJUMYjcnLqplTmfh+s 5kx+LZ32wETG8ENuyMPUogn4dHf+hXRC5KoJYkM6XFdnXgBF8hc4fnecaWF48+BgPUmK ljWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p0zOV226; dkim=neutral (no key) header.i=@linutronix.de; 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-100205-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 19-20020a631753000000b005dc8b9af6bdsi6588511pgx.420.2024.03.12.05.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 05:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100205-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p0zOV226; dkim=neutral (no key) header.i=@linutronix.de; 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-100205-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100205-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CA8A528472B for ; Tue, 12 Mar 2024 12:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41BF87A726; Tue, 12 Mar 2024 12:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p0zOV226"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ynDkCjgp" 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 BD6F579DD0; Tue, 12 Mar 2024 12:00:22 +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=1710244824; cv=none; b=Cjnynf55DKVkak1u0YGKA0rAkSXzJVq22ouYiuyNoJKqcB/em6UBLKSKAjys59KNEQwx336qCFJgruKC195Z5CL9Rvi248KW9m4oZqjvPTDQ2CzQli/mMu1VVnLoA6gtvJzY7xSC/XZkqHHmGWGgErfpE2C47fQKBSSbjZ6L0hA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710244824; c=relaxed/simple; bh=b1mMbI6lID5n8qjV1S7dmie7OFUVRAPPpmbbEOPqwdU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=X+0kWhsqyACKBOxWGCPHSFvEp0Cvl7jEvc4HytXR+rqBwjyT+rv34DSUXOlU/ogglS7Ws1G+RD11Wjy6OjdBDL05mGHQdOOvlfYp+2BKBzqXMXFXxAPhLnvSidS0eUJDAqJ2KWdyE+lDSYBZDSnjEKO6IWg0ZEwc1HNinZwCPoo= 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=p0zOV226; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ynDkCjgp; 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: Tue, 12 Mar 2024 12:00:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710244821; 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=ElUiyIrF/PtVcYTBy1Buyncg8p/ge/E3VzM9JW4kMqY=; b=p0zOV226r2K4G95nejYJch7lWeaFH6I1q08MbmCUE2c+N2UE/JPFwJlTiChDx5aXc3DGF0 ledIllYjSS+rIA9ysglq+yZn5kzySlNwNQuO7h6xbP9tGRyHlGVGEyNhzzxRyW1RWc2NhA 6IpiPrRzcEZ+0IPTy068jn0Zcz0b/nQZTome6NkOK8mKsAPVYOv6xmUbRP5W+TNCAYYdF/ CSoSS7pO3Q8mjdoJrUDZ+SnGU4WeAcgu4LyT/64fac5VIDrcUIXW/8NN3QnGTsY2iW+ikr p0ndw6SFtyvTC1gWHy1DH/n2Ti2fPEabZ+UDwBvqRrVKSBlymK4YZedYoosEqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710244821; 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=ElUiyIrF/PtVcYTBy1Buyncg8p/ge/E3VzM9JW4kMqY=; b=ynDkCjgpiVto7X0UupAuqE8W03ZrQW+amDx+36RdScfiL9f7V/fbW92AwAupvQFLPkcsdK sWG86XpJvtDfZHDQ== 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/balancing: Rename newidle_balance() => sched_balance_newidle() Cc: Ingo Molnar , Shrikanth Hegde , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240308111819.1101550-11-mingo@kernel.org> References: <20240308111819.1101550-11-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171024482045.398.12996146036821244603.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: 7d058285cd77cc1411c91efd1b1673530bb1bee8 Gitweb: https://git.kernel.org/tip/7d058285cd77cc1411c91efd1b1673530bb1bee8 Author: Ingo Molnar AuthorDate: Fri, 08 Mar 2024 12:18:16 +01:00 Committer: Ingo Molnar CommitterDate: Tue, 12 Mar 2024 12:00:00 +01:00 sched/balancing: Rename newidle_balance() => sched_balance_newidle() Standardize scheduler load-balancing function names on the sched_balance_() prefix. Signed-off-by: Ingo Molnar Reviewed-by: Shrikanth Hegde Link: https://lore.kernel.org/r/20240308111819.1101550-11-mingo@kernel.org --- kernel/sched/fair.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 95f7092..aa5ff0e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4816,7 +4816,7 @@ static inline unsigned long cfs_rq_load_avg(struct cfs_rq *cfs_rq) return cfs_rq->avg.load_avg; } -static int newidle_balance(struct rq *this_rq, struct rq_flags *rf); +static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf); static inline unsigned long task_util(struct task_struct *p) { @@ -5136,7 +5136,7 @@ attach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se) {} static inline void detach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se) {} -static inline int newidle_balance(struct rq *rq, struct rq_flags *rf) +static inline int sched_balance_newidle(struct rq *rq, struct rq_flags *rf) { return 0; } @@ -8253,7 +8253,7 @@ balance_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) if (rq->nr_running) return 1; - return newidle_balance(rq, rf) != 0; + return sched_balance_newidle(rq, rf) != 0; } #endif /* CONFIG_SMP */ @@ -8505,10 +8505,10 @@ idle: if (!rf) return NULL; - new_tasks = newidle_balance(rq, rf); + new_tasks = sched_balance_newidle(rq, rf); /* - * Because newidle_balance() releases (and re-acquires) rq->lock, it is + * Because sched_balance_newidle() releases (and re-acquires) rq->lock, it is * possible for any higher priority task to appear. In that case we * must re-start the pick_next_entity() loop. */ @@ -11493,7 +11493,7 @@ out_one_pinned: ld_moved = 0; /* - * newidle_balance() disregards balance intervals, so we could + * sched_balance_newidle() disregards balance intervals, so we could * repeatedly reach this code, which would lead to balance_interval * skyrocketing in a short amount of time. Skip the balance_interval * increase logic to avoid that. @@ -12277,7 +12277,7 @@ static inline void nohz_newidle_balance(struct rq *this_rq) { } #endif /* CONFIG_NO_HZ_COMMON */ /* - * newidle_balance is called by schedule() if this_cpu is about to become + * sched_balance_newidle is called by schedule() if this_cpu is about to become * idle. Attempts to pull tasks from other CPUs. * * Returns: @@ -12285,7 +12285,7 @@ static inline void nohz_newidle_balance(struct rq *this_rq) { } * 0 - failed, no new tasks * > 0 - success, new (fair) tasks present */ -static int newidle_balance(struct rq *this_rq, struct rq_flags *rf) +static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf) { unsigned long next_balance = jiffies + HZ; int this_cpu = this_rq->cpu;