Re: [PATCH v2 04/17] ARM: Allow IPIs to be handled as normal interrupts

2020-06-29 Thread Marc Zyngier
On 2020-06-25 19:25, Valentin Schneider wrote: On 24/06/20 20:57, Marc Zyngier wrote: @@ -696,9 +696,76 @@ void handle_IPI(int ipinr, struct pt_regs *regs) if ((unsigned)ipinr < NR_IPI) trace_ipi_exit_rcuidle(ipi_types[ipinr]); +} + +/* Legacy version, should go away once al

Re: [PATCH v2 04/17] ARM: Allow IPIs to be handled as normal interrupts

2020-06-25 Thread Valentin Schneider
On 24/06/20 20:57, Marc Zyngier wrote: > @@ -696,9 +696,76 @@ void handle_IPI(int ipinr, struct pt_regs *regs) > > if ((unsigned)ipinr < NR_IPI) > trace_ipi_exit_rcuidle(ipi_types[ipinr]); > +} > + > +/* Legacy version, should go away once all irqchips have been converted */ >

[PATCH v2 04/17] ARM: Allow IPIs to be handled as normal interrupts

2020-06-24 Thread Marc Zyngier
In order to deal with IPIs as normal interrupts, let's add a new way to register them with the architecture code. set_smp_ipi_range() takes a range of interrupts, and allows the arch code to request them as if the were normal interrupts. A standard handler is then called by the core IRQ code to de