ARM: factor out allocation routine from __create_mapping()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 15 Sep 2015 12:59:14 +0000 (14:59 +0200)
committerard <ard.biesheuvel@linaro.org>
Sun, 13 Dec 2015 18:18:29 +0000 (19:18 +0100)
commitf579b2b10412771ad5eaa785ddaa7b62b97a6e8d
tree4f002f657e73496ab358f6236e41df0e820d2402
parent1bdb2d4ee05f2fdad4d8a82d7e0ce8d6d91ec4ac
ARM: factor out allocation routine from __create_mapping()

To allow __create_mapping() to be used for populating UEFI Runtime
Services page tables, factor out the allocation routine 'early_alloc'
and pass it down as a function pointer into alloc_init_[pud|pmd|pte].
This way, new users of __create_mapping() can supply another allocation
function.

Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
arch/arm/mm/mmu.c