On Fri, Aug 15, 2025 at 11:06:25AM +0800, Jinjie Ruan wrote:
Currently, x86, Riscv, Loongarch use the generic entry which makes
maintainers' work easier and codes more elegant. So also convert arm64
to use the generic entry infrastructure from kernel/entry/* by
switching it to generic IRQ entry first, which will make PREEMPT_DYNAMIC
and PREEMPT_LAZY use the generic entry common code and remove a lot of
duplicate code.
Since commit a70e9f647f50 ("entry: Split generic entry into generic
exception and syscall entry") split the generic entry into generic irq
entry and generic syscall entry, it is time to convert arm64 to use
the generic irq entry. And ARM64 will be completely converted to generic
entry in the upcoming patch series.
The main convert steps are as follows:
- Split generic entry into generic irq entry and generic syscall to
make the single patch more concentrated in switching to one thing.
- Make arm64 easier to use irqentry_enter/exit().
- Make arm64 closer to the PREEMPT_DYNAMIC code of generic entry.
- Switch to generic irq entry.
I had a read through the patches and this first step looks fine to me.
If Ada or Mark don't spot any problems, I think the series is a
candidate for 6.18.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>