Browse Source

ARC: introduce explicit support for atomics

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta 7 years ago
parent
commit
17ea4f9622
1 changed files with 8 additions and 0 deletions
  1. 8 0
      extra/Configs/Config.arc

+ 8 - 0
extra/Configs/Config.arc

@@ -28,6 +28,14 @@ config CONFIG_ARC_CPU_HS
 
 endchoice
 
+config CONFIG_ARC_HAS_ATOMICS
+	bool "Support for LLOCK/SCOND instructions"
+	default y
+	help
+	  LLOCK/SCOND instructions are needed to implement atomic r-m-w
+	  Otherwise libc needs kernel assisted atomic cmpxchg available
+	  since v4.9 kernel
+
 choice
 	prompt "MMU Page Size"
 	default CONFIG_ARC_PAGE_SIZE_8K