arm64: Move unflatten_device_tree() call earlier.
authorDavid Daney <david.daney@cavium.com>
Fri, 8 Apr 2016 22:50:26 +0000 (15:50 -0700)
committerWill Deacon <will.deacon@arm.com>
Fri, 15 Apr 2016 17:06:08 +0000 (18:06 +0100)
commit3194ac6e66cc7a00c1fa9fecf33a7c376b489497
tree2820041003af28ce17b7d07ca23e25ab459a681e
parent298535c00a2cbcd59e38f8f1c0c9ae7b9911e946
arm64: Move unflatten_device_tree() call earlier.

In order to extract NUMA information from the device tree, we need to
have the tree in its unflattened form.

Move the call to bootmem_init() in the tail of paging_init() into
setup_arch, and adjust header files so that its declaration is
visible.

Move the unflatten_device_tree() call between the calls to
paging_init() and bootmem_init().  Follow on patches add NUMA handling
to bootmem_init().

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/mmu.h
arch/arm64/kernel/setup.c
arch/arm64/mm/mm.h
arch/arm64/mm/mmu.c