aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cevt-r4k.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-03-20 14:45:09 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-03-31 06:04:12 -0400
commitf0c5b8944b39896821e5d64b2d731564498160a9 (patch)
treeb6e138a1b4da723397a0260f493ebd83cd6d77ac /arch/mips/kernel/cevt-r4k.c
parent7dfe819803898c824d55a4afe3a0089861681041 (diff)
MIPS: cevt-r4k: Cleanup c0_compare_interrupt.
The attempt to get gcc to generate best possible code turned c0_compare_interrupt() into a bit of Italian pasta code. Tweak for sanity. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/cevt-r4k.c')
-rw-r--r--arch/mips/kernel/cevt-r4k.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index 4ceed0a66856..d70c4d893219 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -68,7 +68,7 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
68 * the performance counter interrupt handler anyway. 68 * the performance counter interrupt handler anyway.
69 */ 69 */
70 if (handle_perf_irq(r2)) 70 if (handle_perf_irq(r2))
71 goto out; 71 return IRQ_HANDLED;
72 72
73 /* 73 /*
74 * The same applies to performance counter interrupts. But with the 74 * The same applies to performance counter interrupts. But with the
@@ -80,12 +80,11 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
80 write_c0_compare(read_c0_compare()); 80 write_c0_compare(read_c0_compare());
81 cd = &per_cpu(mips_clockevent_device, cpu); 81 cd = &per_cpu(mips_clockevent_device, cpu);
82 cd->event_handler(cd); 82 cd->event_handler(cd);
83 } else { 83
84 return IRQ_NONE; 84 return IRQ_HANDLED;
85 } 85 }
86 86
87out: 87 return IRQ_NONE;
88 return IRQ_HANDLED;
89} 88}
90 89
91struct irqaction c0_compare_irqaction = { 90struct irqaction c0_compare_irqaction = {