aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/pgtable-bits.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2023-01-13 18:10:17 +0100
committerAndrew Morton <[email protected]>2023-02-02 22:33:09 -0800
commit8897ebff37fd34920d380cbfafbfb47804eb4009 (patch)
tree0cc5a33982f4eeb648bcacffcdacdc56c389ccf0 /arch/riscv/include/asm/pgtable-bits.h
parent6d239fc78c0b0c687e5408573350714e6e789d71 (diff)
powerpc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on 32bit book3s
We already implemented support for 64bit book3s in commit bff9beaa2e80 ("powerpc/pgtable: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE for book3s") Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE also in 32bit by reusing yet unused LSB 2 / MSB 29. There seems to be no real reason why that bit cannot be used, and reusing it avoids having to steal one bit from the swap offset. While at it, mask the type in __swp_entry(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: David Hildenbrand <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Christophe Leroy <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'arch/riscv/include/asm/pgtable-bits.h')
0 files changed, 0 insertions, 0 deletions