diff options
author | Björn Töpel <bjorn@rivosinc.com> | 2024-06-05 13:40:44 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-06-26 08:42:37 -0700 |
commit | e3ecf2fdc8f39a898f9e06481e935b460a097e10 (patch) | |
tree | 729149433af641d1e668e6c7dbc81cfbe57f6e26 /arch/riscv/mm | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) |
riscv: mm: Properly forward vmemmap_populate() altmap parameter
Make sure that the altmap parameter is properly passed on to
vmemmap_populate_hugepages().
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20240605114100.315918-2-bjorn@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/mm')
-rw-r--r-- | arch/riscv/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index e3218d65f21d..ecd4e716c995 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -1438,7 +1438,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, * memory hotplug, we are not able to update all the page tables with * the new PMDs. */ - return vmemmap_populate_hugepages(start, end, node, NULL); + return vmemmap_populate_hugepages(start, end, node, altmap); } #endif |