2020-12-03 09:00:17

by Jinyang He

[permalink] [raw]
Subject: [PATCH 1/2] MIPS: Remove unused memblock_set_node

Seting node for platforms which not need multiple nodes make no sence
after we abandoning DISCONTIGMEM.

Signed-off-by: Jinyang He <[email protected]>
---
arch/mips/kernel/setup.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index ca579de..b3a711e 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -639,9 +639,6 @@ static void __init arch_mem_init(char **cmdline_p)
early_init_fdt_reserve_self();
early_init_fdt_scan_reserved_mem();

-#ifndef CONFIG_NUMA
- memblock_set_node(0, PHYS_ADDR_MAX, &memblock.memory, 0);
-#endif
bootmem_init();

/*
--
2.1.0