[PATCH v8 09/11] arm64: select ARCH_HAS_OPTIMIZED_POLL
Ankur Arora
ankur.a.arora at oracle.com
Wed Sep 25 16:24:23 PDT 2024
poll_idle() uses smp_cond_load*() as its polling mechanism.
arm64 supports an optimized version of this via LDXR, WFE, with
LDXR loading a memory region in exclusive state and the WFE
waiting for any stores to it.
Select ARCH_HAS_OPTIMIZED_POLL so poll_idle() can be used.
Signed-off-by: Ankur Arora <ankur.a.arora at oracle.com>
---
arch/arm64/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 49f054dcd4de..ef9c22c3cff2 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -38,6 +38,7 @@ config ARM64
select ARCH_HAS_MEM_ENCRYPT
select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
+ select ARCH_HAS_OPTIMIZED_POLL
select ARCH_HAS_PTE_DEVMAP
select ARCH_HAS_PTE_SPECIAL
select ARCH_HAS_HW_PTE_YOUNG
--
2.43.5
More information about the linux-arm-kernel
mailing list