mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Minor fixes, do not count interrupts without interrupt source as spurious (#1755)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7391 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -48,11 +48,12 @@ void adm5120_hw0_irqdispatch(struct pt_regs *regs)
|
||||
|
||||
intsrc = ADM5120_INTC_STATUS & ADM5120_IRQ_MASK;
|
||||
|
||||
for (i = 0; intsrc; intsrc >>= 1, i++)
|
||||
if (intsrc & 0x1)
|
||||
do_IRQ(i);
|
||||
else
|
||||
spurious_interrupt();
|
||||
if (intsrc) {
|
||||
for (i = 0; intsrc; intsrc >>= 1, i++)
|
||||
if (intsrc & 0x1)
|
||||
do_IRQ(i);
|
||||
} else
|
||||
spurious_interrupt();
|
||||
}
|
||||
|
||||
void mips_timer_interrupt(struct pt_regs *regs)
|
||||
|
||||
Reference in New Issue
Block a user