Thread (21 messages) 21 messages, 5 authors, 2025-09-24

Re: [RFC V2 1/8] powerpc: rename arch_irq_disabled_regs

From: Shrikanth Hegde <hidden>
Date: 2025-09-13 12:51:10
Also in: lkml


On 9/9/25 2:32 AM, Mukesh Kumar Chaurasiya wrote:
Renaming arch_irq_disabled_regs to regs_irqs_disabled to be used
commonly in generic entry exit framework and ppc arch code.

Signed-off-by: Mukesh Kumar Chaurasiya <redacted>
---
  arch/powerpc/include/asm/hw_irq.h    |  4 ++--
  arch/powerpc/include/asm/interrupt.h | 12 ++++++------
  arch/powerpc/kernel/interrupt.c      |  4 ++--
  arch/powerpc/kernel/syscall.c        |  2 +-
  arch/powerpc/kernel/traps.c          |  2 +-
  arch/powerpc/kernel/watchdog.c       |  2 +-
  arch/powerpc/perf/core-book3s.c      |  2 +-
  7 files changed, 14 insertions(+), 14 deletions(-)
...
quoted hunk ↗ jump to hunk
  		return 0;
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c
index 8b0081441f85d..f7518b7e30554 100644
--- a/arch/powerpc/perf/core-book3s.c
+++ b/arch/powerpc/perf/core-book3s.c
@@ -2482,7 +2482,7 @@ static void __perf_event_interrupt(struct pt_regs *regs)
  	 * will trigger a PMI after waking up from idle. Since counter values are _not_
  	 * saved/restored in idle path, can lead to below "Can't find PMC" message.
  	 */
-	if (unlikely(!found) && !arch_irq_disabled_regs(regs))
+	if (unlikely(!found) && !regs_irqs_disabled(regs))
  		printk_ratelimited(KERN_WARNING "Can't find PMC that caused IRQ\n");
  
  	/*

Reviewed-by: Shrikanth Hegde <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help