diff mbox series

[2/2] riscv:kconfig:select HAVE_CMPXCHG_LOCAL

Message ID 20221026104015.565468-3-haiwenyao@uniontech.com (mailing list archive)
State Changes Requested
Headers show
Series riscv: Rewrite percpu operations and support cmpxchg-local feature | expand

Commit Message

Wenyao Hai Oct. 26, 2022, 10:40 a.m. UTC
We implement an optimised this_cpu_cmpxchg API,so select HAVE_CMPXCHG_LOCA
to open cmpxchg-local feature.

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

Patch

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