diff options
author | David Hildenbrand <david@redhat.com> | 2023-01-13 18:10:14 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 07:33:08 +0100 |
commit | 4d1d955f7c0cdbb7562d19049f859c74276fdfeb (patch) | |
tree | f0537894c5da00280df4f2472c57a1f5cb495231 /arch/nios2/include/asm/pgtable-bits.h | |
parent | nios2/mm: refactor swap PTE layout (diff) | |
download | linux-4d1d955f7c0cdbb7562d19049f859c74276fdfeb.tar.xz linux-4d1d955f7c0cdbb7562d19049f859c74276fdfeb.zip |
nios2/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by using the yet-unused bit
31.
Link: https://lkml.kernel.org/r/20230113171026.582290-15-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/pgtable-bits.h')
-rw-r--r-- | arch/nios2/include/asm/pgtable-bits.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/pgtable-bits.h b/arch/nios2/include/asm/pgtable-bits.h index bfddff383e89..724f9b08b1d1 100644 --- a/arch/nios2/include/asm/pgtable-bits.h +++ b/arch/nios2/include/asm/pgtable-bits.h @@ -31,4 +31,7 @@ #define _PAGE_ACCESSED (1<<26) /* page referenced */ #define _PAGE_DIRTY (1<<27) /* dirty page */ +/* We borrow bit 31 to store the exclusive marker in swap PTEs. */ +#define _PAGE_SWP_EXCLUSIVE (1<<31) + #endif /* _ASM_NIOS2_PGTABLE_BITS_H */ |