]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8c4a3dac7a16ffc3d4d00ceb440d93d529854b0
tree1a2ffdb8efbf23ec2e1dd1e836b7362fd5792d21
parent1b10b454178053d18196dcb3a109eea2a30c942e
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