summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/pgtsrmmu.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-04-14 22:40:11 +0100
committerDavid S. Miller <davem@davemloft.net>2020-05-13 15:32:00 -0700
commit8c8f3156dd40f8bdc58f2ac461374bc804c28e3b (patch)
tree78c7e162e943477819899cb9c2d3a64f994bd5c9 /arch/sparc/include/asm/pgtsrmmu.h
parent3f407976ac2953116cb8880a7a18b63bcc81829d (diff)
downloadlinux-8c8f3156dd40f8bdc58f2ac461374bc804c28e3b.tar.bz2
sparc32: mm: Reduce allocation size for PMD and PTE tables
Now that the page table allocator can free page table allocations smaller than PAGE_SIZE, reduce the size of the PMD and PTE allocations to avoid needlessly wasting memory. Cc: "David S. Miller" <davem@davemloft.net> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/pgtsrmmu.h')
-rw-r--r--arch/sparc/include/asm/pgtsrmmu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/pgtsrmmu.h b/arch/sparc/include/asm/pgtsrmmu.h
index 58ea8e8c6ee7..7708d015712b 100644
--- a/arch/sparc/include/asm/pgtsrmmu.h
+++ b/arch/sparc/include/asm/pgtsrmmu.h
@@ -17,8 +17,8 @@
/* Number of contexts is implementation-dependent; 64k is the most we support */
#define SRMMU_MAX_CONTEXTS 65536
-#define SRMMU_PTE_TABLE_SIZE (PAGE_SIZE)
-#define SRMMU_PMD_TABLE_SIZE (PAGE_SIZE)
+#define SRMMU_PTE_TABLE_SIZE (PTRS_PER_PTE*4)
+#define SRMMU_PMD_TABLE_SIZE (PTRS_PER_PMD*4)
#define SRMMU_PGD_TABLE_SIZE (PTRS_PER_PGD*4)
/* Definition of the values in the ET field of PTD's and PTE's */