diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2022-09-09 15:23:12 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-11-24 23:31:47 +1100 |
commit | b86cf14f240e002e001fd4f2bf49114c7836fd5c (patch) | |
tree | 40f979d9e82642c1f7d0a16578f0de5ed2113975 /arch/powerpc/Kconfig | |
parent | ff8fae94e26f5cd2779ceda0ee6d714a10501abd (diff) | |
download | linux-b86cf14f240e002e001fd4f2bf49114c7836fd5c.tar.gz |
powerpc: add compile-time support for lbarx, lharx
ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lharx.
Add a compile option that allows code to use it, and add support in
cmpxchg and xchg 8 and 16 bit values without shifting and masking.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220909052312.63916-1-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 699df27b0e2fc..4fd4924f6d50e 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -293,6 +293,9 @@ config PPC_BARRIER_NOSPEC default y depends on PPC_BOOK3S_64 || PPC_E500 +config PPC_HAS_LBARX_LHARX + bool + config EARLY_PRINTK bool default y |