Re: [RFC PATCH] powerpc: Investigate static_call concept

2021-08-27 Thread Segher Boessenkool
On Fri, Aug 27, 2021 at 04:18:47PM +0200, Peter Zijlstra wrote: > On Fri, Aug 27, 2021 at 09:45:37AM +, Christophe Leroy wrote: > > This RFC is to validate the concept of static_call on powerpc. > > > > Highly copied from x86. > > > > It replaces ppc_md.get_irq() which is called at every IRQ,

Re: [RFC PATCH] powerpc: Investigate static_call concept

2021-08-27 Thread Peter Zijlstra
On Fri, Aug 27, 2021 at 09:45:37AM +, Christophe Leroy wrote: > This RFC is to validate the concept of static_call on powerpc. > > Highly copied from x86. > > It replaces ppc_md.get_irq() which is called at every IRQ, by > a static call. The code looks saner, but does it actually improve per

[RFC PATCH] powerpc: Investigate static_call concept

2021-08-27 Thread Christophe Leroy
This RFC is to validate the concept of static_call on powerpc. Highly copied from x86. It replaces ppc_md.get_irq() which is called at every IRQ, by a static call. When updating the call, we just replace the instruction at the trampoline address by a relative jump to the function. For the time