arm64:mm: free the useless initial page table
authorzhichang.yuan <zhichang.yuan@linaro.org>
Tue, 9 Dec 2014 07:26:47 +0000 (07:26 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Jan 2015 12:07:28 +0000 (12:07 +0000)
commit523d6e9fae9333a0e2a7baf4d11c8bcca544790e
tree3c0d9fc243f9e00ce49985e078a8c641029f0833
parent62fa5e20bd73385253d2b8d3a51f80d1e6d2e1c6
arm64:mm: free the useless initial page table

For 64K page system, after mapping a PMD section, the corresponding initial
page table is not needed any more. That page can be freed.

Signed-off-by: Zhichang Yuan <zhichang.yuan@linaro.org>
[catalin.marinas@arm.com: added BUG_ON() to catch late memblock freeing]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgtable.h
arch/arm64/mm/mmu.c