Re: [PATCH] ARM: entry: Convert IRQ handling to generic IRQ entry

Linus Walleij <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.ports.arm.kernel
Message-ID <CAD++jL=ZiU4K1h7Xo8-eOGcfLEWjsHTQ9xk843T-VFoOCX7BUQ@mail.gmail.com>
Hi Jinjie,

sorry for slow return to this topic :/

On Sat, Jun 27, 2026 at 4:57 AM Jinjie Ruan <[email protected]> wrote:

> I have a small suggestion regarding the `interrupts_enabled` logic. If
> arm32 could also implement `regs_irqs_disabled(regs)` (similar to what
> arm64 and some other architectures already have), we might be able to
> unify this across subsystems.

Yes, the patch implements this, hehe :)

> Specifically, we could then replace the custom `interrupts_enabled`
> usage in both the arm64 architecture code and drivers like
> `drivers/irqchip/irq-gic-v3.c`.

That should already be possible with this patch.

I could also make a patch to replace all uses of interrupts_enabled()
with regs_irqs_disabled() as a follow-up to this patch (which introduces
regs_irqs_disabled()) if it gets accepted, I don't know if
that's a good idea though, maybe it makes the code harder
to read?

Yours,
Linus Walleij
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.