Message ID | 20231006102518.2452758-3-mingo@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp218378vqo; Fri, 6 Oct 2023 03:25:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3N5P5SLrjISmNyJzGmz0/wL18PaLDmPQ46vbNuE2x0QyW3UsxmFN2/TvZZ3Do1v4KJisI X-Received: by 2002:a17:902:e750:b0:1c5:efd1:82b4 with SMTP id p16-20020a170902e75000b001c5efd182b4mr5925531plf.29.1696587943966; Fri, 06 Oct 2023 03:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696587943; cv=none; d=google.com; s=arc-20160816; b=XagXL4dUcSa9Bc5BybYmubS+fGMdwjOPah9kkEQ2eeJ9M/cP026wiW6PdZ5WNv/xwH Kale4f0WXxb2fRVHqBUp+PYlthvgctl65ndTj8WjLSL4kRndbYPQWSNhtCaeUj0iEhOr EFCfv6bRJQcZp6Td3T1WmbCAoXtwVJN2WVmPesk63EKdicwl0Wtvj4+yWL9c1O5FMrdf WwdR1OFUZ5ww/DfIKGB66jwZWUrj2HHUEtLf8TWQpy/Dyl482PxfM4HZbHCZ4KX6Op3N 2DGQv6wtFUfIj4sDu4VeWvk/sHFhcRhJSf9csXuMRCW+JohrYsiOyYHpIJ8bEN+/kCal jt/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=C9fUuQgN+anlMMoJHDkj24MjGD80W1ske574ToiOc/8=; fh=vpy21g+J0gdi07r6ORLEdtAph1WvtREpjU5Tu1A//7s=; b=TlphDNE2+HDbic//xJ6d7uxvBGwOPuKwVOSENJpn/r4110/DL05bXfboIpxa+Ef7C9 IGLe7ALxUhorVSEcCJ2eZOSw5u4nNfPEypapEl4Sox6jJFnx1tMTmrCB08B8DrDVnOoW pa6JiXa2SRlfW3NKmRbyfYHHg8eYWb6GMK1q1oteuZps+JRd++iT/K9A7ydSlQ8FHy0P aeEPWAx0alGvqheMc6iL0d9RKqIMJf+1G4h+Mzy1ugV9LacE7AIeChKvQplb2Jh0qrPh sCtdhnQGjqQtd51a5lwxnXCDtnKHcAR6cuqh3McqnRGZIYOmoZleffvCwXUJHCYy20Xz EC9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZkZ1CATW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l2-20020a170902f68200b001bba4470991si3659870plg.498.2023.10.06.03.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZkZ1CATW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 587C1803E780; Fri, 6 Oct 2023 03:25:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231741AbjJFKZh (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Fri, 6 Oct 2023 06:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbjJFKZa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Oct 2023 06:25:30 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42380BE for <linux-kernel@vger.kernel.org>; Fri, 6 Oct 2023 03:25:29 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9b6559cbd74so363692966b.1 for <linux-kernel@vger.kernel.org>; Fri, 06 Oct 2023 03:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696587927; x=1697192727; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=C9fUuQgN+anlMMoJHDkj24MjGD80W1ske574ToiOc/8=; b=ZkZ1CATWo9pbiokQ7Gl/VQVPFbRNF5emwTWssOMI2SXJIqQT1Yhtm57MNjpEVMKdp7 IC4nbL3upeOSJgRH764ZTuGtb61n5vVQZZuA1zd5Yx7BCnfwKG8YnGnLsf5aVcdi3kuJ YnHl87UM1S2/uol2p+geoRoTJKbTp+iK4715xYmrsv+UZc7wdcT9D2alOcHPB6RiDcoZ G24Lnj9Kn6taqYy9m+q/TlcHj2SuXWEjWXde5HVnu+0HbfsO5kMWoxDQRovDEU/U4q3Y kwmzMn7vtvpCoT/0rTYAgZN9f1Cjo/BKZ+iK2ejT7jQFP8j4j8AtHjvrJI1cs4i+nZsh FUPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696587927; x=1697192727; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=C9fUuQgN+anlMMoJHDkj24MjGD80W1ske574ToiOc/8=; b=t0fUXwAr8Q5gPs1O3iU5uU1K05XEyCiEu/96KjLYjaY+7i8R0q7LtysM+EL2iO0Bl1 Eg3agO7iQDKOhB3dnteL+BxIHbZkSbRZGkO+yW2TMVr4kbtlOUaPGwu1FbQ9B51wglnK 3ybzU8rX7Qe1LbKqIOQBLfRniTDwY4yQubZo/phMwDxsBSi3Cbi4PA0JJDq/iIbm/w9/ CZzv3jRZauludIbHe/CX35NCpi4ROtssPHw0liC2lb5gFrPa6Wdk7pkD9bg3qOitJp8q Qejzx9TC6fYCwt2jHoUmy8bffFbIyfWoVlhhrB7n4NZGyp0Jj3pCgjVqwAnReJEDzLPq 2esg== X-Gm-Message-State: AOJu0YyKAWelbwMGDekL83u/J+B/inF1GvrVLAqMCc9xCavft0L6Ug+C XTDRxzoMGbxN7Utt3hai8z1dxhuo3vg= X-Received: by 2002:a17:906:1bb2:b0:9b9:a1dd:5105 with SMTP id r18-20020a1709061bb200b009b9a1dd5105mr4735704ejg.50.1696587926979; Fri, 06 Oct 2023 03:25:26 -0700 (PDT) Received: from kepler.redhat.com (1F2EF530.nat.pool.telekom.hu. [31.46.245.48]) by smtp.gmail.com with ESMTPSA id n17-20020a170906379100b009b957d5237asm2613502ejc.80.2023.10.06.03.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:25:26 -0700 (PDT) Sender: Ingo Molnar <mingo.kernel.org@gmail.com> From: Ingo Molnar <mingo@kernel.org> To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, Valentin Schneider <vschneid@redhat.com>, Frederic Weisbecker <frederic@kernel.org>, Joel Fernandes <joel@joelfernandes.org>, Thomas Gleixner <tglx@linutronix.de> Subject: [PATCH 2/3] sched/nohz: Use consistent variable names in find_new_ilb() and kick_ilb() Date: Fri, 6 Oct 2023 12:25:17 +0200 Message-Id: <20231006102518.2452758-3-mingo@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231006102518.2452758-1-mingo@kernel.org> References: <20231006102518.2452758-1-mingo@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 03:25:43 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779001399916719630 X-GMAIL-MSGID: 1779001399916719630 |
Series |
sched/nohz: Misc minor cleanups to the NOHZ idle balancing code
|
|
Commit Message
Ingo Molnar
Oct. 6, 2023, 10:25 a.m. UTC
Use 'ilb_cpu' consistently in both functions.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
---
kernel/sched/fair.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Comments
On 06/10/23 12:25, Ingo Molnar wrote: > Use 'ilb_cpu' consistently in both functions. > > Signed-off-by: Ingo Molnar <mingo@kernel.org> > Cc: linux-kernel@vger.kernel.org Reviewed-by: Valentin Schneider <vschneid@redhat.com>
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 8435179779e3..d4e90d15bd77 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -11558,18 +11558,18 @@ static inline int on_null_domain(struct rq *rq) */ static inline int find_new_ilb(void) { - int ilb; const struct cpumask *hk_mask; + int ilb_cpu; hk_mask = housekeeping_cpumask(HK_TYPE_MISC); - for_each_cpu_and(ilb, nohz.idle_cpus_mask, hk_mask) { + for_each_cpu_and(ilb_cpu, nohz.idle_cpus_mask, hk_mask) { - if (ilb == smp_processor_id()) + if (ilb_cpu == smp_processor_id()) continue; - if (idle_cpu(ilb)) - return ilb; + if (idle_cpu(ilb_cpu)) + return ilb_cpu; } return nr_cpu_ids;