diff options
author | David Hildenbrand <david@redhat.com> | 2023-01-13 18:10:25 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 07:33:11 +0100 |
commit | f5c3fe300c5b40ff9af5ce2c9dd9897e91ce5735 (patch) | |
tree | 361214b118d6b89ec73e790b985128cb18a41570 /arch/csky/include | |
parent | x86/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE also on 32bit (diff) | |
download | linux-f5c3fe300c5b40ff9af5ce2c9dd9897e91ce5735.tar.xz linux-f5c3fe300c5b40ff9af5ce2c9dd9897e91ce5735.zip |
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/csky/include')
0 files changed, 0 insertions, 0 deletions