MIPS: Use memblock_add_node() in early_parse_mem() under CONFIG_NUMA
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 24 May 2022 02:27:50 +0000 (10:27 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 24 May 2022 11:05:08 +0000 (13:05 +0200)
commit795d82ed389b0592aefa49c4b1c498351da65a63
treef036c1a752ea023cb2aa34ca0da90e6d9d713db8
parentfb3d6967d508a59b2e8df8358aad1c35579a2833
MIPS: Use memblock_add_node() in early_parse_mem() under CONFIG_NUMA

Use memblock_add_node to add new memblock region within a NUMA node
in early_parse_mem() under CONFIG_NUMA, otherwise the mem parameter
can not work well.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/setup.c