Эх сурвалжийг харах

[ARM] 4688/1: at91: speed-up irq processing

Save N instructions on every interrupt processing (where N is the
number of interrupts processed in any one IRQ exception).

Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
Acked-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Marc Pignat 17 жил өмнө
parent
commit
156864f806

+ 1 - 1
include/asm-arm/arch-at91/entry-macro.S

@@ -17,13 +17,13 @@
 	.endm
 	.endm
 
 
 	.macro  get_irqnr_preamble, base, tmp
 	.macro  get_irqnr_preamble, base, tmp
+	ldr	\base, =(AT91_VA_BASE_SYS + AT91_AIC)		@ base virtual address of AIC peripheral
 	.endm
 	.endm
 
 
 	.macro  arch_ret_to_user, tmp1, tmp2
 	.macro  arch_ret_to_user, tmp1, tmp2
 	.endm
 	.endm
 
 
 	.macro	get_irqnr_and_base, irqnr, irqstat, base, tmp
 	.macro	get_irqnr_and_base, irqnr, irqstat, base, tmp
-	ldr	\base, =(AT91_VA_BASE_SYS + AT91_AIC)		@ base virtual address of AIC peripheral
 	ldr	\irqnr, [\base, #(AT91_AIC_IVR - AT91_AIC)]	@ read IRQ vector register: de-asserts nIRQ to processor (and clears interrupt)
 	ldr	\irqnr, [\base, #(AT91_AIC_IVR - AT91_AIC)]	@ read IRQ vector register: de-asserts nIRQ to processor (and clears interrupt)
 	ldr	\irqstat, [\base, #(AT91_AIC_ISR - AT91_AIC)]	@ read interrupt source number
 	ldr	\irqstat, [\base, #(AT91_AIC_ISR - AT91_AIC)]	@ read interrupt source number
 	teq	\irqstat, #0					@ ISR is 0 when no current interrupt, or spurious interrupt
 	teq	\irqstat, #0					@ ISR is 0 when no current interrupt, or spurious interrupt