From nobody Tue Feb 10 21:39:13 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D902C0015E for ; Tue, 1 Aug 2023 13:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234101AbjHANYz (ORCPT ); Tue, 1 Aug 2023 09:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbjHANYw (ORCPT ); Tue, 1 Aug 2023 09:24:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1841985 for ; Tue, 1 Aug 2023 06:24:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE895615A4 for ; Tue, 1 Aug 2023 13:24:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BDFBC433C7; Tue, 1 Aug 2023 13:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690896290; bh=OCbZZEYY6XG+Gj++glqCcqULb++oCr0LofyrtVtyhEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oUheRgQ6e3jTLVKzFRNeivu8xi+wx3bSs7luMToq7MPUyeMEOdFV9Z10Xwj52jGBl TsBzJKvb9b+/lHy5AF7lkLk+ev1RoQAc/mtDMsEnAswNdWKiH79GfrtjsA5DmDxD8M GFiG1ohj3mNsLa4alssdvt9LGyjknXtmPAD/p8AhgFnq34OEh2S6c0lToN5VK9gU5j kA/v7zsvQ5CTF3dGiW/7YcQBuJqvH75sOtwB2Kultu/XQULLc5jC2TOqCrm5klZUOs /brfyl+A+H/TH738p7IqIOp+65VenPfrbLtrAiSiK77m2Oh3wDfMsnvm2MzM8Luh4+ u7PdXIokymRMw== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Sebastian Andrzej Siewior , Peter Zijlstra , Thomas Gleixner , "Paul E . McKenney" , Linus Torvalds , Anna-Maria Behnsen , Eric Dumazet Subject: [RFC PATCH 1/6] softirq: Turn set_softirq_pending() to reset_softirq_pending() Date: Tue, 1 Aug 2023 15:24:36 +0200 Message-Id: <20230801132441.559222-2-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230801132441.559222-1-frederic@kernel.org> References: <20230801132441.559222-1-frederic@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" set_softirq_pending() is only ever used to reset the pending vector's mask to 0. Make the function more specialized for that very purpose and rename it accordingly. Signed-off-by: Frederic Weisbecker --- include/linux/interrupt.h | 2 +- kernel/softirq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index bf82980f569d..2099fe3980bc 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -524,7 +524,7 @@ DECLARE_STATIC_KEY_FALSE(force_irqthreads_key); #endif =20 #define local_softirq_pending() (__this_cpu_read(local_softirq_pending_ref= )) -#define set_softirq_pending(x) (__this_cpu_write(local_softirq_pending_ref= , (x))) +#define reset_softirq_pending() (__this_cpu_write(local_softirq_pending_re= f, 0)) #define or_softirq_pending(x) (__this_cpu_or(local_softirq_pending_ref, (x= ))) =20 #endif /* local_softirq_pending */ diff --git a/kernel/softirq.c b/kernel/softirq.c index 623985f18833..1a3c3fe341ea 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -532,7 +532,7 @@ asmlinkage __visible void __softirq_entry __do_softirq(= void) =20 restart: /* Reset the pending bitmask before enabling irqs */ - set_softirq_pending(0); + reset_softirq_pending(); =20 local_irq_enable(); =20 --=20 2.34.1