Commit 78f1c24a authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

powerpc/irq: Simplify __do_irq()

parent e90855be
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -281,13 +281,10 @@ void __do_IRQ(struct pt_regs *regs)
	irqsp = hardirq_ctx[raw_smp_processor_id()];
	sirqsp = softirq_ctx[raw_smp_processor_id()];

	/* Already there ? */
	if (unlikely(cursp == irqsp || cursp == sirqsp)) {
	/* Already there ? If not switch stack and call */
	if (unlikely(cursp == irqsp || cursp == sirqsp))
		__do_irq(regs, current_stack_pointer);
		set_irq_regs(old_regs);
		return;
	}
	/* Switch stack and call */
	else
		call_do_irq(regs, irqsp);

	set_irq_regs(old_regs);