]> 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)
commitc57c351ac210d12162828157f3193ccdbece340d
tree1eb4a4335b875a9bf87c7949e39cd7c82634e0b7
parentfeeb178a64896737e18d72d08ffce83a46ec2ade
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