Skip to content

Commit c43e557

Browse files
adureghello-tsGreg Ungerer
authored andcommitted
m68k: mm: fix node memblock init
After pulling 5.7.0 (linux-next merge), mcf5441x mmu boot was hanging silently. memblock_add() seems not appropriate, since using MAX_NUMNODES as node id, while memblock_add_node() sets up memory for node id 0. Signed-off-by: Angelo Dureghello <[email protected]> Signed-off-by: Mike Rapoport <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
1 parent d63bd8c commit c43e557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/m68k/mm/mcfmmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void __init cf_bootmem_alloc(void)
174174
m68k_memory[0].addr = _rambase;
175175
m68k_memory[0].size = _ramend - _rambase;
176176

177-
memblock_add(m68k_memory[0].addr, m68k_memory[0].size);
177+
memblock_add_node(m68k_memory[0].addr, m68k_memory[0].size, 0);
178178

179179
/* compute total pages in system */
180180
num_pages = PFN_DOWN(_ramend - _rambase);

0 commit comments

Comments
 (0)