From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 25A8C313E34 for ; Fri, 29 May 2026 07:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780040599; cv=none; b=Jg7YulFlFE/H11c1RuBXZfpuHAajWAi7fSniWM+VKEQQwVwII5N5TTL5wWJxRtQRxhVlyxrmp+Yr/7VxO4352GgBkyZ+CiFQ8DPRlHoGmMKeg131PUQI/bQuOtl8g2Y2HHYYmsaYgjrJ9I3719eN8bUzMfL7CWG2SumcBy1IvAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780040599; c=relaxed/simple; bh=HQyO6aeZ9ursJ1Cw846uBZKFvUlSfVgkdXGEwhh0U0c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aLuOkNcTh1t3xcvhBMeMqrx63io0kC58BfO+ltmLHaLIn8QewlM1tmVWvck6BM7pmhWlctEYzj+kExTeVu0Gbr/WUSMb5+3NoAUHRPqmA1T5kcCpknXMyL90EPreoz0L1sBMTL6gtQ3z40wGPUAhsYOyK/GVmBOUThyjHTEyLCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ls3hGQ9b; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ls3hGQ9b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14F441F00898; Fri, 29 May 2026 07:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780040597; bh=K3PHrpl2QgP8dFFX0ysthlLv/k/xZ+1P1rJRBQ4n02s=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Ls3hGQ9bBCCV65FkzwKhquL3JLN4wxaomvnvBM7qNqs98M5DXI4vmHKsloEC6IvXF e3vYAGcRikwjEmroBA9k7JCJ6w4oHRhKRJUwQRPY04AKa3IZZWnwug3TFYUj2p/DoY We8Hs/rf4Vm3FL3a8VTXMNnUuo21HMTvXMDwE5TQScUxsIO5Lq8eHyZuchx3F0s/nD qylFRAW0X3RNWjIFi1iQaSLcIK98tKvEGMLQu+YSPo+5NcFM3IZFRl8VZrns8phPJi 2jc5889Uu6m/ooW3d14iw1QyRdMUWYx/F+3sKTDcqvmblpLlthU8z/5E7QL4T/RqIf nqj0aeY9VmX0A== Message-ID: <68c83e4d-92e8-4471-99b2-404eb4f79ffa@kernel.org> Date: Fri, 29 May 2026 09:43:13 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] powerpc/irq: Move __softirq_pending out of irq_stat To: Shrikanth Hegde , maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, tglx@kernel.org Cc: christophe.leroy@csgroup.eu, linux-kernel@vger.kernel.org References: <20260523174016.999456-1-sshegde@linux.ibm.com> <20260523174016.999456-2-sshegde@linux.ibm.com> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260523174016.999456-2-sshegde@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 23/05/2026 à 19:40, Shrikanth Hegde a écrit : > __softirq_pending isn't part of arch specific irq_stats. It is used > by softirq core for various decision making such as whether to kick off > ksoftirqd. > > Move it out of irq_cpustat_t. This makes it simple to make irq_cpustat_t > array based approach. Some reference to commit 0fd7d8628529 ("softirq/core: Consolidate default local_softirq_pending() implementations") should be made I think for better understanding. > > Signed-off-by: Shrikanth Hegde Reviewed-by: Christophe Leroy (CS GROUP) > --- > arch/powerpc/include/asm/hardirq.h | 3 ++- > arch/powerpc/kernel/irq.c | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/include/asm/hardirq.h b/arch/powerpc/include/asm/hardirq.h > index f133b5930ae1..bf3926a0c69c 100644 > --- a/arch/powerpc/include/asm/hardirq.h > +++ b/arch/powerpc/include/asm/hardirq.h > @@ -6,7 +6,6 @@ > #include > > typedef struct { > - unsigned int __softirq_pending; > unsigned int timer_irqs_event; > unsigned int broadcast_irqs_event; > unsigned int timer_irqs_others; > @@ -23,6 +22,8 @@ typedef struct { > } ____cacheline_aligned irq_cpustat_t; > > DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); > +DECLARE_PER_CPU(unsigned int, __softirq_pending); > +#define local_softirq_pending_ref __softirq_pending > > #define __ARCH_IRQ_STAT > #define __ARCH_IRQ_EXIT_IRQS_DISABLED > diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c > index a0e8b998c9b5..f33df5e5c23f 100644 > --- a/arch/powerpc/kernel/irq.c > +++ b/arch/powerpc/kernel/irq.c > @@ -73,6 +73,7 @@ > > DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); > EXPORT_PER_CPU_SYMBOL(irq_stat); > +DEFINE_PER_CPU(unsigned int, __softirq_pending); > > #ifdef CONFIG_PPC32 > atomic_t ppc_n_lost_interrupts;