Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0c5b894 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 7dfe8198
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
	 * the performance counter interrupt handler anyway.
	 */
	if (handle_perf_irq(r2))
		goto out;
		return IRQ_HANDLED;

	/*
	 * The same applies to performance counter interrupts.	But with the
@@ -80,14 +80,13 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
		write_c0_compare(read_c0_compare());
		cd = &per_cpu(mips_clockevent_device, cpu);
		cd->event_handler(cd);
	} else {
		return IRQ_NONE;
	}

out:
		return IRQ_HANDLED;
	}

	return IRQ_NONE;
}

struct irqaction c0_compare_irqaction = {
	.handler = c0_compare_interrupt,
	/*