Skip to content

Commit e3ecf2f

Browse files
bjorn-rivospalmer-dabbelt
authored andcommitted
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>
1 parent 1613e60 commit e3ecf2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
14381438
* memory hotplug, we are not able to update all the page tables with
14391439
* the new PMDs.
14401440
*/
1441-
return vmemmap_populate_hugepages(start, end, node, NULL);
1441+
return vmemmap_populate_hugepages(start, end, node, altmap);
14421442
}
14431443
#endif
14441444

0 commit comments

Comments
 (0)