From 4bc5498399b849054cc82371f613657b11123a4b Mon Sep 17 00:00:00 2001 From: Peter Mitsis Date: Mon, 3 Feb 2025 10:41:55 -0800 Subject: [PATCH] kconfig: Remove stale references to _Swap() _Swap() is obsolete and has since been replaced with z_swap(). Signed-off-by: Peter Mitsis --- arch/Kconfig | 6 +++--- kernel/Kconfig | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index a6fffdea93f..d8b44324819 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -1134,9 +1134,9 @@ config ARCH_HAS_CUSTOM_CPU_ATOMIC_IDLE config ARCH_HAS_CUSTOM_SWAP_TO_MAIN bool help - It's possible that an architecture port cannot use _Swap() to swap to - the _main() thread, but instead must do something custom. It must - enable this option in that case. + It's possible that an architecture port cannot use z_swap_unlocked() + to swap to the main thread (bg_thread_main), but instead must do + something custom. It must enable this option in that case. config ARCH_HAS_CUSTOM_BUSY_WAIT bool diff --git a/kernel/Kconfig b/kernel/Kconfig index fbc0750845c..f4ff43692c4 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -782,9 +782,9 @@ endmenu config SWAP_NONATOMIC bool help - On some architectures, the _Swap() primitive cannot be made + On some architectures, the z_swap() primitive cannot be made atomic with respect to the irq_lock being released. That - is, interrupts may be received between the entry to _Swap + is, interrupts may be received between the entry to z_swap and the completion of the context switch. There are a handful of workaround cases in the kernel that need to be enabled when this is true. Currently, this only happens on