From 921651de2006044c80a5f46167f086be0c53ba03 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Wed, 14 Dec 2011 23:17:23 +0800 Subject: [PATCH] fix the smp boot error Signed-off-by: Jason Liu --- arch/arm/mach-mx6/platsmp.c | 2 ++ arch/arm/plat-mxc/include/mach/smp.h | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-mx6/platsmp.c b/arch/arm/mach-mx6/platsmp.c index 19d6fce474e7..bf332e6c23da 100644 --- a/arch/arm/mach-mx6/platsmp.c +++ b/arch/arm/mach-mx6/platsmp.c @@ -142,6 +142,8 @@ void __init smp_init_cpus(void) for (i = 0; i < ncores; i++) set_cpu_possible(i, true); + + set_smp_cross_call(gic_raise_softirq); } static void __init wakeup_secondary(void) { diff --git a/arch/arm/plat-mxc/include/mach/smp.h b/arch/arm/plat-mxc/include/mach/smp.h index 8f9250b8e74b..fcc42535dc72 100644 --- a/arch/arm/plat-mxc/include/mach/smp.h +++ b/arch/arm/plat-mxc/include/mach/smp.h @@ -14,15 +14,5 @@ /* Needed for secondary core boot */ extern void mx6_secondary_startup(void); -/*extern u32 mx6_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); -extern void mx6_auxcoreboot_addr(u32 cpu_addr); -extern u32 mx6_read_auxcoreboot0(void);*/ -/* - * We use Soft IRQ1 as the IPI - */ -static inline void smp_cross_call(const struct cpumask *mask, int ipi) -{ - gic_raise_softirq(mask, ipi); -} #endif -- 2.39.5