diff options
Diffstat (limited to 'mm/nobootmem.c')
-rw-r--r-- | mm/nobootmem.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/mm/nobootmem.c b/mm/nobootmem.c index 9f4048149f64..d23415c001bc 100644 --- a/mm/nobootmem.c +++ b/mm/nobootmem.c | |||
@@ -355,28 +355,6 @@ void * __init __alloc_bootmem_node_high(pg_data_t *pgdat, unsigned long size, | |||
355 | return __alloc_bootmem_node(pgdat, size, align, goal); | 355 | return __alloc_bootmem_node(pgdat, size, align, goal); |
356 | } | 356 | } |
357 | 357 | ||
358 | #ifdef CONFIG_SPARSEMEM | ||
359 | /** | ||
360 | * alloc_bootmem_section - allocate boot memory from a specific section | ||
361 | * @size: size of the request in bytes | ||
362 | * @section_nr: sparse map section to allocate from | ||
363 | * | ||
364 | * Return NULL on failure. | ||
365 | */ | ||
366 | void * __init alloc_bootmem_section(unsigned long size, | ||
367 | unsigned long section_nr) | ||
368 | { | ||
369 | unsigned long pfn, goal, limit; | ||
370 | |||
371 | pfn = section_nr_to_pfn(section_nr); | ||
372 | goal = pfn << PAGE_SHIFT; | ||
373 | limit = section_nr_to_pfn(section_nr + 1) << PAGE_SHIFT; | ||
374 | |||
375 | return __alloc_memory_core_early(early_pfn_to_nid(pfn), size, | ||
376 | SMP_CACHE_BYTES, goal, limit); | ||
377 | } | ||
378 | #endif | ||
379 | |||
380 | #ifndef ARCH_LOW_ADDRESS_LIMIT | 358 | #ifndef ARCH_LOW_ADDRESS_LIMIT |
381 | #define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL | 359 | #define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL |
382 | #endif | 360 | #endif |