riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default
authorChenxi Mao <maochenxi@eswin.com>
Fri, 5 Jun 2020 05:15:10 +0000 (13:15 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 29 Jun 2020 22:23:27 +0000 (15:23 -0700)
Select ARCH_SUPPORTS_ATOMIC_RMW by default to enable osqlocks.

Signed-off-by: Chenxi Mao <maochenxi@eswin.com>
[Palmer: commit text]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig

index 128192e..089293e 100644 (file)
@@ -13,6 +13,7 @@ config 32BIT
 config RISCV
        def_bool y
        select ARCH_CLOCKSOURCE_INIT
+       select ARCH_SUPPORTS_ATOMIC_RMW
        select ARCH_HAS_BINFMT_FLAT
        select ARCH_HAS_DEBUG_VIRTUAL if MMU
        select ARCH_HAS_DEBUG_WX