[PATCH 2/2] riscv:kconfig:select HAVE_CMPXCHG_LOCAL

Wen Yao haiwenyao at uniontech.com
Wed Oct 26 03:40:15 PDT 2022


We implement an optimised this_cpu_cmpxchg API,so select HAVE_CMPXCHG_LOCA
to open cmpxchg-local feature.

Signed-off-by: Wen Yao <haiwenyao at uniontech.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 6b48a3ae9843..8e19df5a8227 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -88,6 +88,7 @@ config RISCV
 	select HAVE_ARCH_THREAD_STRUCT_WHITELIST
 	select HAVE_ARCH_VMAP_STACK if MMU && 64BIT
 	select HAVE_ASM_MODVERSIONS
+	select HAVE_CMPXCHG_LOCAL
 	select HAVE_CONTEXT_TRACKING_USER
 	select HAVE_DEBUG_KMEMLEAK
 	select HAVE_DMA_CONTIGUOUS if MMU
-- 
2.25.1




More information about the linux-riscv mailing list