aboutsummaryrefslogtreecommitdiff
path: root/arch/nios2/include/asm/pgtable-bits.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2023-01-13 18:10:12 +0100
committerAndrew Morton <[email protected]>2023-02-02 22:33:08 -0800
commit83d3b2b46ea3f8fa542fb7528b3bca6f476d0fab (patch)
treec8ad6c09d9db05f878bbf7e6399a59b18750b8d2 /arch/nios2/include/asm/pgtable-bits.h
parentb5c88f21531c3457e3e202817556b68171484e00 (diff)
mips/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE. On 64bit, steal one bit from the type. Generic MM currently only uses 5 bits for the type (MAX_SWAPFILES_SHIFT), so the stolen bit is effectively unused. On 32bit we're able to locate unused bits. As the PTE layout for 32 bit is very confusing, document it a bit better. While at it, mask the type in __swp_entry()/mk_swap_pte(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: David Hildenbrand <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'arch/nios2/include/asm/pgtable-bits.h')
0 files changed, 0 insertions, 0 deletions