powerpc/irq: Inline call_do_irq() and call_do_softirq()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 19 Mar 2021 06:34:43 +0000 (06:34 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 02:22:17 +0000 (13:22 +1100)
commit48cf12d88969bd4238b8769767eb476970319d93
tree1a2ffdb8efbf23ec2e1dd1e836b7362fd5792d21
parentd2313da4ff56bd631a3afe7a17992ed5bd0e04a6
powerpc/irq: Inline call_do_irq() and call_do_softirq()

call_do_irq() and call_do_softirq() are simple enough to be
worth inlining.

Inlining them avoids an mflr/mtlr pair plus a save/reload on stack.

This is inspired from S390 arch. Several other arches do more or
less the same. The way sparc arch does seems odd thought.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210320122227.345427-1-mpe@ellerman.id.au
arch/powerpc/include/asm/irq.h
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/misc_32.S
arch/powerpc/kernel/misc_64.S