|
@@ -820,7 +820,7 @@ static void __init allocate_node_data(int nid)
|
|
|
struct pglist_data *p;
|
|
|
|
|
|
#ifdef CONFIG_NEED_MULTIPLE_NODES
|
|
|
- paddr = memblock_alloc_nid(sizeof(struct pglist_data), SMP_CACHE_BYTES, nid);
|
|
|
+ paddr = memblock_alloc_try_nid(sizeof(struct pglist_data), SMP_CACHE_BYTES, nid);
|
|
|
if (!paddr) {
|
|
|
prom_printf("Cannot allocate pglist_data for nid[%d]\n", nid);
|
|
|
prom_halt();
|
|
@@ -840,7 +840,7 @@ static void __init allocate_node_data(int nid)
|
|
|
if (p->node_spanned_pages) {
|
|
|
num_pages = bootmem_bootmap_pages(p->node_spanned_pages);
|
|
|
|
|
|
- paddr = memblock_alloc_nid(num_pages << PAGE_SHIFT, PAGE_SIZE, nid);
|
|
|
+ paddr = memblock_alloc_try_nid(num_pages << PAGE_SHIFT, PAGE_SIZE, nid);
|
|
|
if (!paddr) {
|
|
|
prom_printf("Cannot allocate bootmap for nid[%d]\n",
|
|
|
nid);
|