powerpc/64s/radix: Allocate kernel page tables node-local if possible
authorNicholas Piggin <npiggin@gmail.com>
Tue, 13 Feb 2018 15:08:24 +0000 (01:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Mar 2018 13:07:09 +0000 (00:07 +1100)
commit2ad452ffaaa8d2f1124208e507e7b045e8ee98a6
tree1eb4a4335b875a9bf87c7949e39cd7c82634e0b7
parent0633dafcf8921048eb1ddc8c6fcfbe1b1cf3e42c
powerpc/64s/radix: Allocate kernel page tables node-local if possible

Try to allocate kernel page tables for direct mapping and vmemmap
according to the node of the memory they will map. The node is not
available for the linear map in early boot, so use range allocation
to allocate the page tables from the region they map, which is
effectively node-local.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fix build error in radix__create_section_mapping()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-radix.c