diff options
author | Angelo Dureghello <angelo.dureghello@timesys.com> | 2020-06-17 09:53:41 +0300 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2020-06-29 23:58:05 +1000 |
commit | c43e55796dd4d13f4855971a4d7970ce2cd94db4 (patch) | |
tree | f4baf0ce74b14b0512309f843114bb7747ebf2ed /arch | |
parent | d63bd8c81d8ab64db506ffde569cc8ff197516e2 (diff) | |
download | linux-c43e55796dd4d13f4855971a4d7970ce2cd94db4.tar.bz2 |
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 <angelo.dureghello@timesys.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/mm/mcfmmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/mm/mcfmmu.c b/arch/m68k/mm/mcfmmu.c index 29f47923aa46..7d04210d34f0 100644 --- a/arch/m68k/mm/mcfmmu.c +++ b/arch/m68k/mm/mcfmmu.c @@ -174,7 +174,7 @@ void __init cf_bootmem_alloc(void) m68k_memory[0].addr = _rambase; m68k_memory[0].size = _ramend - _rambase; - memblock_add(m68k_memory[0].addr, m68k_memory[0].size); + memblock_add_node(m68k_memory[0].addr, m68k_memory[0].size, 0); /* compute total pages in system */ num_pages = PFN_DOWN(_ramend - _rambase); |