From: Vineet Gupta Date: Thu, 4 Jun 2015 12:07:23 +0000 (+0530) Subject: ARC: make plat_smp_ops weak to allow over-rides X-Git-Tag: v4.14-rc1~5135^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=173eaafaed284fc95209902f68f011d01d1eda02;p=platform%2Fkernel%2Flinux-rpi.git ARC: make plat_smp_ops weak to allow over-rides This allows platforms to provide their own cpu wakeup routines as well as IPI send / clear backends, while allowing a SMP kernel w/o any such backend to build/boot Signed-off-by: Vineet Gupta --- diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c index ee2982d..d07cb53 100644 --- a/arch/arc/kernel/smp.c +++ b/arch/arc/kernel/smp.c @@ -31,7 +31,7 @@ arch_spinlock_t smp_atomic_ops_lock = __ARCH_SPIN_LOCK_UNLOCKED; arch_spinlock_t smp_bitops_lock = __ARCH_SPIN_LOCK_UNLOCKED; #endif -struct plat_smp_ops plat_smp_ops; +struct plat_smp_ops __weak plat_smp_ops; /* XXX: per cpu ? Only needed once in early seconday boot */ struct task_struct *secondary_idle_tsk;