commit | b5200ec9edf038459619fce9988842efa751a2c5 | [log] [tgz] |
---|---|---|
author | Reza Arbab <arbab@linux.vnet.ibm.com> | Mon Jan 16 13:07:43 2017 -0600 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue Jan 31 13:54:18 2017 +1100 |
tree | 9ecb40992af97b8afbf1f9a833eb634bf1118fc5 | |
parent | 023b13a50183d9cfc4fc5a66cb1f773ace22024c [diff] |
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>