aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/opal-memory-errors.c
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2022-04-09 17:17:32 +0000
committerMichael Ellerman <[email protected]>2022-05-05 12:11:57 +0000
commit76a345ed16c63df9b02d3e374e8d5e39471174ad (patch)
tree14ac614eba45ca300626000b1e8ca0c54bbc7a05 /arch/powerpc/platforms/powernv/opal-memory-errors.c
parentpowerpc/mm: Remove CONFIG_PPC_MM_SLICES (diff)
downloadkernel-76a345ed16c63df9b02d3e374e8d5e39471174ad.tar.gz
kernel-76a345ed16c63df9b02d3e374e8d5e39471174ad.zip
powerpc/mm: Use generic_get_unmapped_area() and call it from arch_get_unmapped_area()
Use the generic version of arch_get_unmapped_area() which is now available at all time instead of its copy radix__arch_get_unmapped_area() To allow that for PPC64, add arch_get_mmap_base() and arch_get_mmap_end() macros. Instead of setting mm->get_unmapped_area() to either arch_get_unmapped_area() or generic_get_unmapped_area(), always set it to arch_get_unmapped_area() and call generic_get_unmapped_area() from there when radix is enabled. Do the same with radix__arch_get_unmapped_area_topdown() Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/393be1fa386446443682fdb74544d733f68ef3bb.1649523076.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-memory-errors.c')
0 files changed, 0 insertions, 0 deletions