From 17ea4f9622a80cc8717beeefe1371ccbcd501fe3 Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Mon, 7 Nov 2016 16:31:39 -0800 Subject: ARC: introduce explicit support for atomics Signed-off-by: Vineet Gupta --- extra/Configs/Config.arc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extra/Configs/Config.arc b/extra/Configs/Config.arc index 0c0bc71ce..c263dbf46 100644 --- a/extra/Configs/Config.arc +++ b/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 -- cgit v1.2.3