提交 39263eeb 编写于 作者: J Jayachandran C 提交者: Ralf Baechle

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: NJayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2460/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 1544129d
...@@ -209,7 +209,7 @@ void __init init_xlr_irqs(void) ...@@ -209,7 +209,7 @@ void __init init_xlr_irqs(void)
irq_set_chip_and_handler(i, &xlr_pic, handle_level_irq); irq_set_chip_and_handler(i, &xlr_pic, handle_level_irq);
else else
irq_set_chip_and_handler(i, &nlm_cpu_intr, irq_set_chip_and_handler(i, &nlm_cpu_intr,
handle_level_irq); handle_percpu_irq);
} }
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
irq_set_chip_and_handler(IRQ_IPI_SMP_FUNCTION, &nlm_cpu_intr, irq_set_chip_and_handler(IRQ_IPI_SMP_FUNCTION, &nlm_cpu_intr,
......
...@@ -87,17 +87,7 @@ void nlm_smp_function_ipi_handler(unsigned int irq, struct irq_desc *desc) ...@@ -87,17 +87,7 @@ void nlm_smp_function_ipi_handler(unsigned int irq, struct irq_desc *desc)
/* IRQ_IPI_SMP_RESCHEDULE handler */ /* IRQ_IPI_SMP_RESCHEDULE handler */
void nlm_smp_resched_ipi_handler(unsigned int irq, struct irq_desc *desc) void nlm_smp_resched_ipi_handler(unsigned int irq, struct irq_desc *desc)
{ {
set_need_resched(); scheduler_ipi();
}
void nlm_common_ipi_handler(int irq, struct pt_regs *regs)
{
if (irq == IRQ_IPI_SMP_FUNCTION) {
smp_call_function_interrupt();
} else {
/* Announce that we are for reschduling */
set_need_resched();
}
} }
/* /*
...@@ -122,6 +112,7 @@ void nlm_smp_finish(void) ...@@ -122,6 +112,7 @@ void nlm_smp_finish(void)
#ifdef notyet #ifdef notyet
nlm_common_msgring_cpu_init(); nlm_common_msgring_cpu_init();
#endif #endif
local_irq_enable();
} }
void nlm_cpus_done(void) void nlm_cpus_done(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册