]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: mach-shmobile: optimize get_irqnr_preamble/and_base macros
authorMagnus Damm <damm@opensource.se>
Mon, 8 Feb 2010 10:53:13 +0000 (10:53 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 9 Feb 2010 01:31:11 +0000 (10:31 +0900)
Optimize the SH-Mobile interrupt assembly macros to avoid
reloading the INTFLGA register address in case of multiple
pending interrupts. Kindly pointed out by Russell King.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/include/mach/entry-macro.S

index 796b304050ccaca029ecdfa66402bbbf11428683..a285d13c74165a2e73a3941a7d1d47d03b91b8ac 100644 (file)
        .endm
 
        .macro  get_irqnr_preamble, base, tmp
+       ldr     \base, =INTFLGA
        .endm
 
        .macro  arch_ret_to_user, tmp1, tmp2
        .endm
 
        .macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
-       ldr     \base, =INTFLGA
        ldr     \irqnr, [\base]
        cmp     \irqnr, #0
        beq     1000f