riscv: Use PMD_SIZE to replace PTE_PARENT_SIZE
authorZong Li <zong.li@sifive.com>
Fri, 8 Nov 2019 09:00:40 +0000 (01:00 -0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Tue, 12 Nov 2019 20:01:44 +0000 (12:01 -0800)
commit0fdc636cd95ceeba48b8c171ac338df46b795101
treee68c9c09e10bd37fba6dabeaa5df7eb4daa6ee77
parenta99d8080aaf358d5d23581244e5da23b35e340b9
riscv: Use PMD_SIZE to replace PTE_PARENT_SIZE

The PMD_SIZE is equal to PGDIR_SIZE when __PAGETABLE_PMD_FOLDED is
defined.

Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
[paul.walmsley@sifive.com: fixed spelling in commit summary]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/mm/init.c