]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: refactor radix physical page mapping
authorReza Arbab <arbab@linux.vnet.ibm.com>
Mon, 16 Jan 2017 19:07:43 +0000 (13:07 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 02:54:18 +0000 (13:54 +1100)
commite1143c38a76394deff3a902c4e75fd18b5dd45bc
tree9ecb40992af97b8afbf1f9a833eb634bf1118fc5
parentca19395468ad281e2b7e2f9ddb52014c6466ff94
powerpc/mm: refactor radix physical page mapping

Move the page mapping code in radix_init_pgtable() into a separate
function that will also be used for memory hotplug.

The current goto loop progressively decreases its mapping size as it
covers the tail of a range whose end is unaligned. Change this to a for
loop which can do the same for both ends of the range.

Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-radix.c