]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf751398cd6dc6ff8a1df1452d5b67ee3472d8997
tree1eb4a4335b875a9bf87c7949e39cd7c82634e0b7
parent7e6f991b07ce16cb5fce9fbbfa3fa39ac059075b
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