[RFC V2 1/8] powerpc: rename arch_irq_disabled_regs

Shrikanth Hegde sshegde at linux.ibm.com
Sat Sep 13 22:50:07 AEST 2025



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 <mchauras at linux.ibm.com>
> ---
>   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(-)
> 
...

>   		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 <sshegde at linux.ibm.com>


More information about the Linuxppc-dev mailing list