Commit 033890b0 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] SMTC: Statically initialize irq_ipi[].

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 004561d3
......@@ -975,7 +975,12 @@ static void ipi_irq_dispatch(void)
do_IRQ(cpu_ipi_irq);
}
static struct irqaction irq_ipi;
static struct irqaction irq_ipi = {
.handler = ipi_interrupt,
.flags = IRQF_DISABLED,
.name = "SMTC_IPI",
.flags = IRQF_PERCPU
};
static void setup_cross_vpe_interrupts(unsigned int nvpe)
{
......@@ -987,13 +992,8 @@ static void setup_cross_vpe_interrupts(unsigned int nvpe)
set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch);
irq_ipi.handler = ipi_interrupt;
irq_ipi.flags = IRQF_DISABLED;
irq_ipi.name = "SMTC_IPI";
setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ));
irq_desc[cpu_ipi_irq].status |= IRQ_PER_CPU;
set_irq_handler(cpu_ipi_irq, handle_percpu_irq);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment