diff mbox series

[3/3] MIPS: Select ARCH_SUPPORTS_ATOMIC_RMW when possible

Message ID 20230519164753.72065-4-jiaxun.yang@flygoat.com (mailing list archive)
State Changes Requested
Headers show
Series MIPS: Enable ARCH_SUPPORTS_ATOMIC_RMW | expand

Commit Message

Jiaxun Yang May 19, 2023, 4:47 p.m. UTC
Select ARCH_SUPPORTS_ATOMIC_RMW when we are certain that our CPU
have LLSC support.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 arch/mips/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 85728e4703bd..5f52bdecb4c9 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -21,6 +21,7 @@  config MIPS
 	select ARCH_USE_MEMTEST
 	select ARCH_USE_QUEUED_RWLOCKS
 	select ARCH_USE_QUEUED_SPINLOCKS
+	select ARCH_SUPPORTS_ATOMIC_RMW if CPU_HAS_LLSC
 	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
 	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
 	select ARCH_WANT_IPC_PARSE_VERSION