summaryrefslogtreecommitdiff
path: root/arch/arm/mm/tlb-v7.S
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-08-10 20:51:19 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-08-11 12:15:59 +0400
commitf5f2025ef3e2cdb593707cbf87378761f17befbe (patch)
tree92e3e13ae25f950781294c112a4a03176e39fd10 /arch/arm/mm/tlb-v7.S
parent47f1204329237a0f8655f5a9f14a38ac81946ca1 (diff)
downloadlinux-f5f2025ef3e2cdb593707cbf87378761f17befbe.tar.xz
ARM: 7488/1: mm: use 5 bits for swapfile type encoding
Page migration encodes the pfn in the offset field of a swp_entry_t. For LPAE, we support physical addresses of up to 36 bits (due to sparsemem limitations with the size of page flags), requiring 24 bits to represent a pfn. A further 3 bits are used to encode a swp_entry into a pte, leaving 5 bits for the type field. Furthermore, the core code defines MAX_SWAPFILES_SHIFT as 5, so the additional type bit does not get used. This patch reduces the width of the type field to 5 bits, allowing us to create up to 31 swapfiles of 64GB each. Cc: <stable@vger.kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/tlb-v7.S')
0 files changed, 0 insertions, 0 deletions