davinci: interrupts: get_irqnr_and_base: save an instruction
authorTroy Kisky <troy.kisky@boundarydevices.com>
Mon, 11 Feb 2008 21:44:07 +0000 (14:44 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Tue, 26 May 2009 14:18:14 +0000 (07:18 -0700)
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/include/mach/entry-macro.S

index 039b84f933b327742460ef7bdb13ae9ecedfb0e6..0ebb445450500a290ac89c1ed21616a5cd430513 100644 (file)
@@ -23,9 +23,8 @@
 
                .macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
                ldr \tmp, [\base, #0x14]
-               mov \tmp, \tmp, lsr #2
+               movs \tmp, \tmp, lsr #2
                sub \irqnr, \tmp, #1
-               cmp \tmp, #0
                .endm
 
                .macro  irq_prio_table