diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2019-11-24 10:57:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-30 11:14:28 +0100 |
commit | 5637bc5048340456176fcd4c8986edc1ac1acbe1 (patch) | |
tree | 166c9b855d298204f44de91e93c22e5091a6b930 /arch/sparc/include/asm/pgalloc_64.h | |
parent | sparc/console: kill off obsolete declarations (diff) | |
download | linux-dev-5637bc5048340456176fcd4c8986edc1ac1acbe1.tar.xz linux-dev-5637bc5048340456176fcd4c8986edc1ac1acbe1.zip |
sparc64: add support for folded p4d page tables
Implement primitives necessary for the 4th level folding, add walks of p4d
level where appropriate and replace 5level-fixup.h with pgtable-nop4d.h.
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/pgalloc_64.h')
-rw-r--r-- | arch/sparc/include/asm/pgalloc_64.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/include/asm/pgalloc_64.h b/arch/sparc/include/asm/pgalloc_64.h index 48abccba4991..b0d90a1774a2 100644 --- a/arch/sparc/include/asm/pgalloc_64.h +++ b/arch/sparc/include/asm/pgalloc_64.h @@ -16,12 +16,12 @@ extern struct kmem_cache *pgtable_cache; -static inline void __pgd_populate(pgd_t *pgd, pud_t *pud) +static inline void __p4d_populate(p4d_t *p4d, pud_t *pud) { - pgd_set(pgd, pud); + p4d_set(p4d, pud); } -#define pgd_populate(MM, PGD, PUD) __pgd_populate(PGD, PUD) +#define p4d_populate(MM, P4D, PUD) __p4d_populate(P4D, PUD) static inline pgd_t *pgd_alloc(struct mm_struct *mm) { |