m68k: switch to MEMBLOCK + NO_BOOTMEM
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Wed, 4 Jul 2018 06:28:16 +0000 (09:28 +0300)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 29 Jul 2018 08:48:18 +0000 (10:48 +0200)
commit1008a11590b966b469e60dc3756c9226a685ce12
treed85fdc45296edccbb78833ffd69fb81d2cb8251e
parent9e09221957c5cc6b70596c888651af0c7b052bd9
m68k: switch to MEMBLOCK + NO_BOOTMEM

In m68k the physical memory is described by [memory_start, memory_end] for
!MMU variant and by m68k_memory array of memory ranges for the MMU version.
This information is directly use to register the physical memory with
memblock.

The reserve_bootmem() calls are replaced with memblock_reserve() and the
bootmap bitmap allocation is simply dropped.

Since the MMU variant creates early mappings only for the small part of the
memory we force bottom-up allocations in memblock.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/Kconfig
arch/m68k/kernel/setup_mm.c
arch/m68k/kernel/setup_no.c
arch/m68k/mm/init.c
arch/m68k/mm/mcfmmu.c
arch/m68k/mm/motorola.c
arch/m68k/sun3/config.c