diff options
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index 67ad061f7fb8..cb900dda7fd2 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -68,7 +68,7 @@ static noinline struct mem_section __ref *sparse_index_alloc(int nid) | |||
68 | if (slab_is_available()) | 68 | if (slab_is_available()) |
69 | section = kzalloc_node(array_size, GFP_KERNEL, nid); | 69 | section = kzalloc_node(array_size, GFP_KERNEL, nid); |
70 | else | 70 | else |
71 | section = memblock_virt_alloc_node(array_size, nid); | 71 | section = memblock_alloc_node(array_size, nid); |
72 | 72 | ||
73 | return section; | 73 | return section; |
74 | } | 74 | } |
@@ -216,7 +216,7 @@ void __init memory_present(int nid, unsigned long start, unsigned long end) | |||
216 | 216 | ||
217 | size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; | 217 | size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; |
218 | align = 1 << (INTERNODE_CACHE_SHIFT); | 218 | align = 1 << (INTERNODE_CACHE_SHIFT); |
219 | mem_section = memblock_virt_alloc(size, align); | 219 | mem_section = memblock_alloc(size, align); |
220 | } | 220 | } |
221 | #endif | 221 | #endif |
222 | 222 | ||
@@ -306,7 +306,7 @@ sparse_early_usemaps_alloc_pgdat_section(struct pglist_data *pgdat, | |||
306 | limit = goal + (1UL << PA_SECTION_SHIFT); | 306 | limit = goal + (1UL << PA_SECTION_SHIFT); |
307 | nid = early_pfn_to_nid(goal >> PAGE_SHIFT); | 307 | nid = early_pfn_to_nid(goal >> PAGE_SHIFT); |
308 | again: | 308 | again: |
309 | p = memblock_virt_alloc_try_nid_nopanic(size, | 309 | p = memblock_alloc_try_nid_nopanic(size, |
310 | SMP_CACHE_BYTES, goal, limit, | 310 | SMP_CACHE_BYTES, goal, limit, |
311 | nid); | 311 | nid); |
312 | if (!p && limit) { | 312 | if (!p && limit) { |
@@ -362,7 +362,7 @@ static unsigned long * __init | |||
362 | sparse_early_usemaps_alloc_pgdat_section(struct pglist_data *pgdat, | 362 | sparse_early_usemaps_alloc_pgdat_section(struct pglist_data *pgdat, |
363 | unsigned long size) | 363 | unsigned long size) |
364 | { | 364 | { |
365 | return memblock_virt_alloc_node_nopanic(size, pgdat->node_id); | 365 | return memblock_alloc_node_nopanic(size, pgdat->node_id); |
366 | } | 366 | } |
367 | 367 | ||
368 | static void __init check_usemap_section_nr(int nid, unsigned long *usemap) | 368 | static void __init check_usemap_section_nr(int nid, unsigned long *usemap) |
@@ -391,7 +391,7 @@ struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid, | |||
391 | if (map) | 391 | if (map) |
392 | return map; | 392 | return map; |
393 | 393 | ||
394 | map = memblock_virt_alloc_try_nid(size, | 394 | map = memblock_alloc_try_nid(size, |
395 | PAGE_SIZE, __pa(MAX_DMA_ADDRESS), | 395 | PAGE_SIZE, __pa(MAX_DMA_ADDRESS), |
396 | BOOTMEM_ALLOC_ACCESSIBLE, nid); | 396 | BOOTMEM_ALLOC_ACCESSIBLE, nid); |
397 | return map; | 397 | return map; |
@@ -405,7 +405,7 @@ static void __init sparse_buffer_init(unsigned long size, int nid) | |||
405 | { | 405 | { |
406 | WARN_ON(sparsemap_buf); /* forgot to call sparse_buffer_fini()? */ | 406 | WARN_ON(sparsemap_buf); /* forgot to call sparse_buffer_fini()? */ |
407 | sparsemap_buf = | 407 | sparsemap_buf = |
408 | memblock_virt_alloc_try_nid_raw(size, PAGE_SIZE, | 408 | memblock_alloc_try_nid_raw(size, PAGE_SIZE, |
409 | __pa(MAX_DMA_ADDRESS), | 409 | __pa(MAX_DMA_ADDRESS), |
410 | BOOTMEM_ALLOC_ACCESSIBLE, nid); | 410 | BOOTMEM_ALLOC_ACCESSIBLE, nid); |
411 | sparsemap_buf_end = sparsemap_buf + size; | 411 | sparsemap_buf_end = sparsemap_buf + size; |