diff options
| author | Christophe Leroy <[email protected]> | 2022-04-09 17:17:37 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-05-05 12:11:58 +0000 |
| commit | 3ba4289a3e7ff4a89a78c4f74d694a344e8d9cc9 (patch) | |
| tree | 3a66e65955d97ab18ad180ff31a45e0defe4175f /arch/powerpc/platforms/powernv/opal-memory-errors.c | |
| parent | powerpc/mm: Convert to default topdown mmap layout (diff) | |
| download | kernel-3ba4289a3e7ff4a89a78c4f74d694a344e8d9cc9.tar.gz kernel-3ba4289a3e7ff4a89a78c4f74d694a344e8d9cc9.zip | |
powerpc: Simplify and move arch_randomize_brk()
arch_randomize_brk() is only needed for hash on book3s/64, for other
platforms the one provided by the default mmap layout is good enough.
Move it to hash_utils.c and use randomize_page() like the generic one.
And properly opt out the radix case instead of making an assumption
on mmu_highuser_ssize.
Also change to a 32M range like most other architectures instead of 8M.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/eafa4d18ec8ac7b98dd02b40181e61643707cc7c.1649523076.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-memory-errors.c')
0 files changed, 0 insertions, 0 deletions
