From patchwork Fri Nov 8 10:39:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13867916 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77CD7D5E156 for ; Fri, 8 Nov 2024 10:42:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1DA3A6B0096; Fri, 8 Nov 2024 05:42:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 09AEB6B009D; Fri, 8 Nov 2024 05:42:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC5D86B0099; Fri, 8 Nov 2024 05:42:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id BA0296B0096 for ; Fri, 8 Nov 2024 05:42:26 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7CA7F120B45 for ; Fri, 8 Nov 2024 10:42:26 +0000 (UTC) X-FDA: 82762587558.10.D42410A Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf18.hostedemail.com (Postfix) with ESMTP id 9A6CE1C000A for ; Fri, 8 Nov 2024 10:42:08 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b="aHiJn/o/"; dkim=pass header.d=linutronix.de header.s=2020e header.b=JhRs5HBi; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf18.hostedemail.com: domain of bigeasy@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731062419; a=rsa-sha256; cv=none; b=gsG/QRKpYF4LK8CajjbmN8oxMSOUYtiaJfq65SwJi3Vzl6q1pw7nhinAgEsWiI3HQQp5Np VcoScjClascEiRiuOoX0bZbfnbTFuUs4uD/poHUZs9tTUsAEfOVmV6ht4Woi2kZkhSDn6K 95ge9A6MCmddalsHA1Qld/o/PNE43bk= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b="aHiJn/o/"; dkim=pass header.d=linutronix.de header.s=2020e header.b=JhRs5HBi; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf18.hostedemail.com: domain of bigeasy@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731062419; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CcYB5rXKKViOk7fZRL5jGg/tydDAGzhBkw56NFEZwc4=; b=OzIs3qY3fNN4gVZp/mcgaitWuDhYL6atbtxL2hVCweERjMiAbkzCGdaJm3My3yC9kuiueW cuGIWtrZAjVGKwn8NYve8HUrfvB1XLRV7oFavIL532xxxNlsoLVktekiGVOPUV/Wf0gZE3 GT+J/4ILjPBjteKuQjaYw2+G7s8yZww= From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1731062543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CcYB5rXKKViOk7fZRL5jGg/tydDAGzhBkw56NFEZwc4=; b=aHiJn/o/+6onX0kCs8A1AF+dH4PkQZuCiqCHE9SqK55ncLjfpg1wXCj+mytiP4POXPWxIc LasvbEFflpW2QiawiJuNUBoYqo1LUSNMMCVWNe3HjnWCKBB74ZIQMT3QcqqtESkoTT5Svu pmnNyPkgjHw6sSu7gSRm/y0Yl422xMRqXizzfJSFS4t6H2wQ883iWHWoZQdRCYNVyZbcPL Y8bnx2oBAeXr6UTD5sFgH34hxBDtIlwRwtIAE3KjLB2td+B63DBzRDh9/8dp8+mGmXJTKf u8j9HEE/1HP71YQv3nRjyx9c6Q8bbr238ij/G1P8w+aAPZvsilvIpQ1Z7WEVsw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1731062543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CcYB5rXKKViOk7fZRL5jGg/tydDAGzhBkw56NFEZwc4=; b=JhRs5HBiMYA0iJy0GGk0/CmAR2p7t7xPyc7Y9NrbJck2tkOJxhBw3tKEnOcV16A4OpkPAo kXbaprGbEnguLkCQ== To: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: "Paul E. McKenney" , Boqun Feng , Marco Elver , Peter Zijlstra , Tomas Gleixner , Vlastimil Babka , akpm@linux-foundation.org, cl@linux.com, iamjoonsoo.kim@lge.com, longman@redhat.com, penberg@kernel.org, rientjes@google.com, sfr@canb.auug.org.au, Sebastian Andrzej Siewior Subject: [PATCH v3 1/4] scftorture: Avoid additional div operation. Date: Fri, 8 Nov 2024 11:39:31 +0100 Message-ID: <20241108104217.3759904-2-bigeasy@linutronix.de> In-Reply-To: <20241108104217.3759904-1-bigeasy@linutronix.de> References: <20241108104217.3759904-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-Rspamd-Queue-Id: 9A6CE1C000A X-Stat-Signature: c6k1rbx5ehoerzctgg3rtgwcrifiowut X-Rspam-User: X-Rspamd-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WvDK1xanpHyS+E3DRwh/u7lA6fiHcXggXjFtxhmF9i97toS9AeVhLgi05JKW43VMytnRd1qkKO+YsQhBpsH7ihBUclAL4lKBeBPjGgc3E78c9ouF0OVENMS3P2iVJ/cP7Oj03edCaI+nuOWj6K6ghj7kMvwHquVB7BgiC7T511ilZVQAchgkJK/PmhwiBqyrcnHGd0fw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Replace "scfp->cpu % nr_cpu_ids" with "cpu". This has been computed earlier. Tested-by: Paul E. McKenney Signed-off-by: Sebastian Andrzej Siewior --- kernel/scftorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 44e83a6462647..455cbff35a1a2 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -463,7 +463,7 @@ static int scftorture_invoker(void *arg) // Make sure that the CPU is affinitized appropriately during testing. curcpu = raw_smp_processor_id(); - WARN_ONCE(curcpu != scfp->cpu % nr_cpu_ids, + WARN_ONCE(curcpu != cpu, "%s: Wanted CPU %d, running on %d, nr_cpu_ids = %d\n", __func__, scfp->cpu, curcpu, nr_cpu_ids);