diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-07-27 13:33:30 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-31 16:35:23 -0400 |
commit | 033890b084adfa367c544864451d7730552ce8bf (patch) | |
tree | e739a752b726bfd4745916f64df09cef74052733 | |
parent | 004561d3af67065215b9ddef22048c4d05467fb2 (diff) |
[MIPS] SMTC: Statically initialize irq_ipi[].
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/smtc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 342d873b2ecc..596c5a7ca874 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c | |||
@@ -975,7 +975,12 @@ static void ipi_irq_dispatch(void) | |||
975 | do_IRQ(cpu_ipi_irq); | 975 | do_IRQ(cpu_ipi_irq); |
976 | } | 976 | } |
977 | 977 | ||
978 | static struct irqaction irq_ipi; | 978 | static struct irqaction irq_ipi = { |
979 | .handler = ipi_interrupt, | ||
980 | .flags = IRQF_DISABLED, | ||
981 | .name = "SMTC_IPI", | ||
982 | .flags = IRQF_PERCPU | ||
983 | }; | ||
979 | 984 | ||
980 | static void setup_cross_vpe_interrupts(unsigned int nvpe) | 985 | static void setup_cross_vpe_interrupts(unsigned int nvpe) |
981 | { | 986 | { |
@@ -987,13 +992,8 @@ static void setup_cross_vpe_interrupts(unsigned int nvpe) | |||
987 | 992 | ||
988 | set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch); | 993 | set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch); |
989 | 994 | ||
990 | irq_ipi.handler = ipi_interrupt; | ||
991 | irq_ipi.flags = IRQF_DISABLED; | ||
992 | irq_ipi.name = "SMTC_IPI"; | ||
993 | |||
994 | setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ)); | 995 | setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ)); |
995 | 996 | ||
996 | irq_desc[cpu_ipi_irq].status |= IRQ_PER_CPU; | ||
997 | set_irq_handler(cpu_ipi_irq, handle_percpu_irq); | 997 | set_irq_handler(cpu_ipi_irq, handle_percpu_irq); |
998 | } | 998 | } |
999 | 999 | ||