From: Shrikanth Hegde <sshegde@linux.ibm.com>
To: christophe.leroy@csgroup.eu, maddy@linux.ibm.com,
linuxppc-dev@lists.ozlabs.org, tglx@kernel.org
Cc: sshegde@linux.ibm.com, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/3] powerpc/irq: Use optimizations for /proc/interrupts
Date: Fri, 29 May 2026 18:10:42 +0530 [thread overview]
Message-ID: <20260529124045.1208539-1-sshegde@linux.ibm.com> (raw)
v1-> v2:
- Collected the tags (Thanks to Christophe Leroy)
- Rename skip to optional and check optional while printing
(Christophe Leroy)
- Decided not to add cpu_has_feature(CPU_FTR_DBELL) while printing.
This feature is mostly true for majority of platforms and adding check
means more ifdefs in that path. Prinitng "Doorbell interrupts" shouldn't
cause any issue when feature if off since all entries would be zero.
(sashiko)
This series is based on work by Thomas Gleixner[1].
Further details can be found in cover-letter of v1.
======== Performance Data ==================
Time taken to read /proc/interrupts 1000 times[2]
Base : 103us
v6[1] : 63us
v6+patch 1+2 : 57us
v6+patch 1+2+3 : 54us
Base: tip/master at 'ddfd3966d0d4 ("Merge branch into tip/master: 'x86/tdx'")'
[1]: https://lore.kernel.org/all/20260517194421.705253664@kernel.org/
[2]: https://lore.kernel.org/all/87jysxw65f.ffs@tglx/
v1: https://lore.kernel.org/all/20260523174016.999456-1-sshegde@linux.ibm.com/
Shrikanth Hegde (3):
powerpc/irq: Move __softirq_pending out of irq_stat
powerpc/irq: Make irqstats array based
powerpc/irq: Suppress unlikely interrupt stats by default
arch/powerpc/include/asm/hardirq.h | 31 ++++---
arch/powerpc/kernel/dbell.c | 2 +-
arch/powerpc/kernel/irq.c | 131 +++++++++++++++--------------
arch/powerpc/kernel/time.c | 6 +-
arch/powerpc/kernel/traps.c | 11 +--
arch/powerpc/kernel/watchdog.c | 2 +-
6 files changed, 95 insertions(+), 88 deletions(-)
--
2.47.3
next reply other threads:[~2026-05-29 12:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 12:40 Shrikanth Hegde [this message]
2026-05-29 12:40 ` [PATCH v2 1/3] powerpc/irq: Move __softirq_pending out of irq_stat Shrikanth Hegde
2026-05-29 12:40 ` [PATCH v2 2/3] powerpc/irq: Make irqstats array based Shrikanth Hegde
2026-05-29 12:40 ` [PATCH v2 3/3] powerpc/irq: Suppress unlikely interrupt stats by default Shrikanth Hegde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260529124045.1208539-1-sshegde@linux.ibm.com \
--to=sshegde@linux.ibm.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox