ARC: R-M-W assist locks only needed for !LLSC
authorVineet Gupta <vgupta@synopsys.com>
Fri, 7 Nov 2014 13:21:22 +0000 (18:51 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 12 Dec 2014 10:32:34 +0000 (16:02 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/smp.c

index d01df0c517a2044ddc15f5fdb895303aa3de56bb..20ebb602ea2f3a4f9721fff8f4458fcf4c0e3ec5 100644 (file)
 #include <asm/setup.h>
 #include <asm/mach_desc.h>
 
+#ifndef CONFIG_ARC_HAS_LLSC
 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;