Skip to content

Commit c8e4701

Browse files
rppttorvalds
authored andcommitted
riscv: drop unneeded node initialization
RISC-V does not (yet) support NUMA and for UMA architectures node 0 is used implicitly during early memory initialization. There is no need to call memblock_set_node(), remove this call and the surrounding code. Signed-off-by: Mike Rapoport <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Baoquan He <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Daniel Axtens <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Emil Renner Berthing <[email protected]> Cc: Hari Bathini <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Marek Szyprowski <[email protected]> Cc: Max Filippov <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Michal Simek <[email protected]> Cc: Miguel Ojeda <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Russell King <[email protected]> Cc: Stafford Horne <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Cc: Yoshinori Sato <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent 80c4574 commit c8e4701

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/riscv/mm/init.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,6 @@ void __init setup_bootmem(void)
191191
early_init_fdt_scan_reserved_mem();
192192
memblock_allow_resize();
193193
memblock_dump_all();
194-
195-
for_each_memblock(memory, reg) {
196-
unsigned long start_pfn = memblock_region_memory_base_pfn(reg);
197-
unsigned long end_pfn = memblock_region_memory_end_pfn(reg);
198-
199-
memblock_set_node(PFN_PHYS(start_pfn),
200-
PFN_PHYS(end_pfn - start_pfn),
201-
&memblock.memory, 0);
202-
}
203194
}
204195

205196
#ifdef CONFIG_MMU

0 commit comments

Comments
 (0)