Commit e3ecf2fd authored by Björn Töpel's avatar Björn Töpel Committed by Palmer Dabbelt

riscv: mm: Properly forward vmemmap_populate() altmap parameter

Make sure that the altmap parameter is properly passed on to
vmemmap_populate_hugepages().
Reviewed-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: default avatarBjörn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20240605114100.315918-2-bjorn@kernel.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 1613e604
...@@ -1438,7 +1438,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, ...@@ -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 * memory hotplug, we are not able to update all the page tables with
* the new PMDs. * the new PMDs.
*/ */
return vmemmap_populate_hugepages(start, end, node, NULL); return vmemmap_populate_hugepages(start, end, node, altmap);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment