diff options
author | David Hildenbrand <david@redhat.com> | 2023-01-13 20:10:13 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 09:33:08 +0300 |
commit | 0a9ad8273ff4643dd50ff6b3ec991ab270e87a89 (patch) | |
tree | e9beec3b782f365ca7063c6a772fe3adfa7e3bb5 /arch/openrisc/include/asm/pgtable.h | |
parent | 83d3b2b46ea3f8fa542fb7528b3bca6f476d0fab (diff) | |
download | linux-0a9ad8273ff4643dd50ff6b3ec991ab270e87a89.tar.xz |
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/20230113171026.582290-14-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/openrisc/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions