mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
ns9xxx: Use get_irqnr_preamble to initialize base register
This patch optimizes the irq handling a bit. Now the base register is only computed once if more than one irq is pending. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
This commit is contained in:
parent
c1a9e91e42
commit
ab65b87093
1 changed files with 1 additions and 1 deletions
|
@ -12,13 +12,13 @@
|
|||
#include <asm/arch-ns9xxx/regs-sys.h>
|
||||
|
||||
.macro get_irqnr_preamble, base, tmp
|
||||
ldr \base, =SYS_ISRADDR
|
||||
.endm
|
||||
|
||||
.macro arch_ret_to_user, tmp1, tmp2
|
||||
.endm
|
||||
|
||||
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
|
||||
ldr \base, =SYS_ISRADDR
|
||||
ldr \irqstat, [\base, #(SYS_ISA - SYS_ISRADDR)]
|
||||
cmp \irqstat, #0
|
||||
ldrne \irqnr, [\base]
|
||||
|
|
Loading…
Reference in a new issue