riscv: Adjust mmap base address at a third of task size
authorAlexandre Ghiti <aghiti@upmem.com>
Mon, 10 Dec 2018 06:21:46 +0000 (06:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:02:28 +0000 (14:02 -0700)
commitdc04a00b3cbb89c96e3b5d5ef7b7cb75d1d747ec
treeced86b288e5c3eeeb428cd686f0f16763c6150f3
parentf43e42f46aa87bc0507bde9a0cd6ead663ba6a30
riscv: Adjust mmap base address at a third of task size

[ Upstream commit ae662eec8a515ab550524e04c793b5ddf1aae3a1 ]

This ratio is the most used among all other architectures and make
icache_hygiene libhugetlbfs test pass: this test mmap lots of
hugepages whose addresses, without this patch, reach the end of
the process user address space.

Signed-off-by: Alexandre Ghiti <aghiti@upmem.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/processor.h