Skip to content

Commit

Permalink
[MIPS] SMTC: Statically initialize irq_ipi[].
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Jul 31, 2007
1 parent 004561d commit 033890b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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);
}

Expand Down

0 comments on commit 033890b

Please sign in to comment.