diff options
author | Jayachandran C <jayachandranc@netlogicmicro.com> | 2011-06-06 17:44:12 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-07-20 18:12:11 -0400 |
commit | 39263eeb44308a5d6ea6117376721a6091d2b622 (patch) | |
tree | 96edfb0b5f238c8671fe977441ca735cc78b0f58 /arch/mips/netlogic/xlr | |
parent | 1544129da2de9fa276429deed8fac3fbc45634be (diff) |
MIPS: Netlogic: SMP fixes for XLR/XLS platform code.
Fix few issues in the Netlogic code:
- Use handle_percpu_irq to handle per-cpu interrupts
- Remove unused function nlm_common_ipi_handler()
- Call scheduler_ipi() on SMP_RESCHEDULE_YOURSELF
- Enable interrupts in nlm_smp_finish()
Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2460/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/netlogic/xlr')
-rw-r--r-- | arch/mips/netlogic/xlr/irq.c | 2 | ||||
-rw-r--r-- | arch/mips/netlogic/xlr/smp.c | 13 |
2 files changed, 3 insertions, 12 deletions
diff --git a/arch/mips/netlogic/xlr/irq.c b/arch/mips/netlogic/xlr/irq.c index 1446d58e364c..521bb7377eb0 100644 --- a/arch/mips/netlogic/xlr/irq.c +++ b/arch/mips/netlogic/xlr/irq.c | |||
@@ -209,7 +209,7 @@ void __init init_xlr_irqs(void) | |||
209 | irq_set_chip_and_handler(i, &xlr_pic, handle_level_irq); | 209 | irq_set_chip_and_handler(i, &xlr_pic, handle_level_irq); |
210 | else | 210 | else |
211 | irq_set_chip_and_handler(i, &nlm_cpu_intr, | 211 | irq_set_chip_and_handler(i, &nlm_cpu_intr, |
212 | handle_level_irq); | 212 | handle_percpu_irq); |
213 | } | 213 | } |
214 | #ifdef CONFIG_SMP | 214 | #ifdef CONFIG_SMP |
215 | irq_set_chip_and_handler(IRQ_IPI_SMP_FUNCTION, &nlm_cpu_intr, | 215 | irq_set_chip_and_handler(IRQ_IPI_SMP_FUNCTION, &nlm_cpu_intr, |
diff --git a/arch/mips/netlogic/xlr/smp.c b/arch/mips/netlogic/xlr/smp.c index b495a7f1433b..d842bce5c940 100644 --- a/arch/mips/netlogic/xlr/smp.c +++ b/arch/mips/netlogic/xlr/smp.c | |||
@@ -87,17 +87,7 @@ void nlm_smp_function_ipi_handler(unsigned int irq, struct irq_desc *desc) | |||
87 | /* IRQ_IPI_SMP_RESCHEDULE handler */ | 87 | /* IRQ_IPI_SMP_RESCHEDULE handler */ |
88 | void nlm_smp_resched_ipi_handler(unsigned int irq, struct irq_desc *desc) | 88 | void nlm_smp_resched_ipi_handler(unsigned int irq, struct irq_desc *desc) |
89 | { | 89 | { |
90 | set_need_resched(); | 90 | scheduler_ipi(); |
91 | } | ||
92 | |||
93 | void nlm_common_ipi_handler(int irq, struct pt_regs *regs) | ||
94 | { | ||
95 | if (irq == IRQ_IPI_SMP_FUNCTION) { | ||
96 | smp_call_function_interrupt(); | ||
97 | } else { | ||
98 | /* Announce that we are for reschduling */ | ||
99 | set_need_resched(); | ||
100 | } | ||
101 | } | 91 | } |
102 | 92 | ||
103 | /* | 93 | /* |
@@ -122,6 +112,7 @@ void nlm_smp_finish(void) | |||
122 | #ifdef notyet | 112 | #ifdef notyet |
123 | nlm_common_msgring_cpu_init(); | 113 | nlm_common_msgring_cpu_init(); |
124 | #endif | 114 | #endif |
115 | local_irq_enable(); | ||
125 | } | 116 | } |
126 | 117 | ||
127 | void nlm_cpus_done(void) | 118 | void nlm_cpus_done(void) |