aboutsummaryrefslogtreecommitdiff
path: root/arch/nios2/include/asm/pgtable-bits.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2023-01-13 18:10:13 +0100
committerAndrew Morton <[email protected]>2023-02-02 22:33:08 -0800
commit0a9ad8273ff4643dd50ff6b3ec991ab270e87a89 (patch)
treee9beec3b782f365ca7063c6a772fe3adfa7e3bb5 /arch/nios2/include/asm/pgtable-bits.h
parent83d3b2b46ea3f8fa542fb7528b3bca6f476d0fab (diff)
nios2/mm: refactor swap PTE layout
nios2 disables swap for a good reason: it doesn't even provide sufficient type bits as required by core MM. However, swap entries are nowadays also used for other purposes (migration entries, PTE markers, HWPoison, ...), and accidential use could be problematic. Let's properly use 5 bits for the swap type and document the layout. Bits 26--31 should get ignored by hardware completely, so they can be used. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: David Hildenbrand <[email protected]> Cc: Dinh Nguyen <[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