arm64: mm: Consolidate early page table allocation
authorWill Deacon <will.deacon@arm.com>
Mon, 8 Apr 2019 10:23:48 +0000 (11:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 10:21:50 +0000 (11:21 +0100)
commit475ba3fc194b6429eebcca0e1cf9917de6fa173e
tree1eeac165fd0bc96aa56f33790bd3316861f51f6a
parent54c8d9119ec85de48fd0707946a5e57df9ad7acf
arm64: mm: Consolidate early page table allocation

The logic for early allocation of page tables is duplicated between
pgd_kernel_pgtable_alloc() and pgd_pgtable_alloc(). Drop the duplication
by calling one from the other and renaming pgd_kernel_pgtable_alloc()
accordingly.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/mmu.c