Explorar o código

ARC: R-M-W assist locks only needed for !LLSC

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta %!s(int64=10) %!d(string=hai) anos
pai
achega
9fb92eb116
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      arch/arc/kernel/smp.c

+ 2 - 0
arch/arc/kernel/smp.c

@@ -26,8 +26,10 @@
 #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;