mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
MIPS: replace add_memory_region with memblock
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
73826d604b
commit
e7ae8d174e
28 changed files with 82 additions and 149 deletions
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/serial_8250.h>
|
||||
#include <linux/memblock.h>
|
||||
#include <linux/pm.h>
|
||||
|
||||
#include <asm/idle.h>
|
||||
|
@ -149,7 +150,7 @@ static void prom_add_memory(void)
|
|||
|
||||
bootm = (void *)(long)nlm_prom_info.psb_mem_map;
|
||||
for (i = 0; i < bootm->nr_map; i++) {
|
||||
if (bootm->map[i].type != BOOT_MEM_RAM)
|
||||
if (bootm->map[i].type != NLM_BOOT_MEM_RAM)
|
||||
continue;
|
||||
start = bootm->map[i].addr;
|
||||
size = bootm->map[i].size;
|
||||
|
@ -158,7 +159,7 @@ static void prom_add_memory(void)
|
|||
if (i == 0 && start == 0 && size == 0x0c000000)
|
||||
size = 0x0ff00000;
|
||||
|
||||
add_memory_region(start, size - pref_backup, BOOT_MEM_RAM);
|
||||
memblock_add(start, size - pref_backup);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue