projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8598066
)
irqchip: omap-intc: minor improvement to omap_irq_pending()
author
Felipe Balbi
<
[email protected]
>
Mon, 15 Sep 2014 21:15:03 +0000
(16:15 -0500)
committer
Tony Lindgren
<
[email protected]
>
Tue, 16 Sep 2014 21:44:59 +0000
(14:44 -0700)
We already hold the number of Pending registers
in omap_nr_pending. Let's use that instead.
Acked-by: Jason Cooper <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
Signed-off-by: Tony Lindgren <
[email protected]
>
drivers/irqchip/irq-omap-intc.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-omap-intc.c
b/drivers/irqchip/irq-omap-intc.c
index 1478f1a3c40089451e752cf334f7715b1fe1f1eb..2933760f95aa91aa31846db6dbd31aa562b036a3 100644
(file)
--- a/
drivers/irqchip/irq-omap-intc.c
+++ b/
drivers/irqchip/irq-omap-intc.c
@@
-174,11
+174,10
@@
static void __init omap_irq_soft_reset(void)
int omap_irq_pending(void)
{
- int i
rq
;
+ int i;
- for (irq = 0; irq < omap_nr_irqs; irq += 32)
- if (intc_readl(INTC_PENDING_IRQ0 +
- ((irq >> 5) << 5)))
+ for (i = 0; i < omap_nr_pending; i++)
+ if (intc_readl(INTC_PENDING_IRQ0 + (0x20 * i)))
return 1;
return 0;
}