Skip to content

Commit

Permalink
ARM: mach-shmobile: optimize get_irqnr_preamble/and_base macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Feb 9, 2010
1 parent 34bf0fc commit 62f60d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
.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
Expand Down

0 comments on commit 62f60d6

Please sign in to comment.