summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/pgtable.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-01-13 20:10:25 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-02-03 09:33:11 +0300
commitf5c3fe300c5b40ff9af5ce2c9dd9897e91ce5735 (patch)
tree361214b118d6b89ec73e790b985128cb18a41570 /arch/mips/include/asm/pgtable.h
parent93c0eac40d4e3ce4d5a3c6e0dc74eceaf8f63e0d (diff)
downloadlinux-f5c3fe300c5b40ff9af5ce2c9dd9897e91ce5735.tar.xz
xtensa/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by using bit 1. This bit should be safe to use for our usecase. Most importantly, we can still distinguish swap PTEs from PAGE_NONE PTEs (see pte_present()) and don't use one of the two reserved attribute masks (1101 and 1111). Attribute mask 1100 and 1110 now identify swap PTEs. While at it, remove SWP_TYPE_BITS (not really helpful as it's not used in the actual swap macros) and mask the type in __swp_entry(). Link: https://lkml.kernel.org/r/20230113171026.582290-26-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/mips/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions