From 3b99fb1b4a55ce51be185b25fd2ba99dcb4d0125 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Tue, 2 Jan 2024 14:14:33 -0800 Subject: [PATCH] xtensa: do not imply atomic ops kconfig Xtensa's arch level atomic implementation requries S32C1I support which may not exist as Xtensa cores are highly configurable. Implying CONFIG_ATOMIC_OPERATIONS_ARCH at arch level has a side effect that it is enabled regardless if the other options are enabled. Given how the header file's #ifdef is structured, only C atomic ops can override this, which means enabling CONFIG_ATOMIC_OPERATIONS_BUILTIN has no effect at all. So let the SoC or board decide which atomic ops are being used instead. Signed-off-by: Daniel Leung --- arch/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index 8130d3fa6a8..b8661fa5964 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -126,7 +126,6 @@ config XTENSA select ARCH_HAS_CODE_DATA_RELOCATION select ARCH_HAS_TIMING_FUNCTIONS select ARCH_MEM_DOMAIN_DATA if USERSPACE - imply ATOMIC_OPERATIONS_ARCH help Xtensa architecture