[PATCH 3/3] powerpc: Enable lbarx/lharx for Power10

From: Nysal Jan K.A.

Date: Wed Nov 25 2026 - 12:42:35 EST


Byte (lbarx/stbcx.) and half word (lharx/sthcx.) atomic instructions
were introduced in Power ISA 2.06 and are implemented on POWER7 and
later CPUs. Select PPC_HAS_LBARX_LHARX for Power10 as well.

Signed-off-by: Nysal Jan K.A. <nysal@xxxxxxxxxxxxx>
---
arch/powerpc/platforms/Kconfig.cputype | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index a42fd4c64159..25d4a5eb3216 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -178,6 +178,7 @@ config POWER10_CPU
select ARCH_HAS_FAST_MULTIPLIER
select PPC_HAVE_PREFIXED_SUPPORT
select PPC_HAVE_PCREL_SUPPORT
+ select PPC_HAS_LBARX_LHARX
select PPC_HAS_LQARX

config E5500_CPU
--
2.52.0