]> asedeno.scripts.mit.edu Git - linux.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)
commitb5200ec9edf038459619fce9988842efa751a2c5
tree9ecb40992af97b8afbf1f9a833eb634bf1118fc5
parent023b13a50183d9cfc4fc5a66cb1f773ace22024c
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