diff options
author | David Hildenbrand <david@redhat.com> | 2023-01-13 20:10:12 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 09:33:08 +0300 |
commit | 83d3b2b46ea3f8fa542fb7528b3bca6f476d0fab (patch) | |
tree | c8ad6c09d9db05f878bbf7e6399a59b18750b8d2 /arch/nios2/include/asm/entry.h | |
parent | b5c88f21531c3457e3e202817556b68171484e00 (diff) | |
download | linux-83d3b2b46ea3f8fa542fb7528b3bca6f476d0fab.tar.xz |
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/20230113171026.582290-13-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/nios2/include/asm/entry.h')
0 files changed, 0 insertions, 0 deletions