aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-clps711x/common.c30
1 files changed, 18 insertions, 12 deletions
diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c
index bd658398a819..f6d1746366d4 100644
--- a/arch/arm/mach-clps711x/common.c
+++ b/arch/arm/mach-clps711x/common.c
@@ -215,7 +215,7 @@ void __init clps711x_init_irq(void)
215 } 215 }
216} 216}
217 217
218inline u32 fls16(u32 x) 218static inline u32 fls16(u32 x)
219{ 219{
220 u32 r = 15; 220 u32 r = 15;
221 221
@@ -239,18 +239,24 @@ inline u32 fls16(u32 x)
239 239
240asmlinkage void __exception_irq_entry clps711x_handle_irq(struct pt_regs *regs) 240asmlinkage void __exception_irq_entry clps711x_handle_irq(struct pt_regs *regs)
241{ 241{
242 u32 irqstat; 242 do {
243 void __iomem *base = CLPS711X_VIRT_BASE; 243 u32 irqstat;
244 void __iomem *base = CLPS711X_VIRT_BASE;
245
246 irqstat = readw_relaxed(base + INTSR1) &
247 readw_relaxed(base + INTMR1);
248 if (irqstat)
249 handle_IRQ(fls16(irqstat), regs);
250
251 irqstat = readw_relaxed(base + INTSR2) &
252 readw_relaxed(base + INTMR2);
253 if (irqstat) {
254 handle_IRQ(fls16(irqstat) + 16, regs);
255 continue;
256 }
244 257
245 irqstat = readl_relaxed(base + INTSR1) & readl_relaxed(base + INTMR1); 258 break;
246 if (irqstat) { 259 } while (1);
247 handle_IRQ(fls16(irqstat), regs);
248 return;
249 }
250
251 irqstat = readl_relaxed(base + INTSR2) & readl_relaxed(base + INTMR2);
252 if (likely(irqstat))
253 handle_IRQ(fls16(irqstat) + 16, regs);
254} 260}
255 261
256static u32 notrace clps711x_sched_clock_read(void) 262static u32 notrace clps711x_sched_clock_read(void)