| From 3dc54900473bb8cd5065d7bea6fb34639b2f07e3 Mon Sep 17 00:00:00 2001 |
| From: Guo Ren <guoren@linux.alibaba.com> |
| Date: Tue, 7 Jan 2020 12:21:25 +0800 |
| Subject: [PATCH] csky/smp: Fixup boot failed when CONFIG_SMP |
| |
| commit c9492737b25ca32679ba3163609d938c9abfd508 upstream. |
| |
| If we use a non-ipi-support interrupt controller, it will cause panic here. |
| We should let cpu up and work with CONFIG_SMP, when we use a non-ipi intc. |
| |
| Signed-off-by: Guo Ren <guoren@linux.alibaba.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/arch/csky/kernel/smp.c b/arch/csky/kernel/smp.c |
| index b07a534b3062..b824c7e3a2bb 100644 |
| --- a/arch/csky/kernel/smp.c |
| +++ b/arch/csky/kernel/smp.c |
| @@ -120,7 +120,7 @@ void __init setup_smp_ipi(void) |
| int rc; |
| |
| if (ipi_irq == 0) |
| - panic("%s IRQ mapping failed\n", __func__); |
| + return; |
| |
| rc = request_percpu_irq(ipi_irq, handle_ipi, "IPI Interrupt", |
| &ipi_dummy_dev); |
| -- |
| 2.7.4 |
| |