summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/nobootmem.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/mm/nobootmem.c b/mm/nobootmem.c
index d4d0cd474087..44ce7de1be8f 100644
--- a/mm/nobootmem.c
+++ b/mm/nobootmem.c
@@ -404,38 +404,3 @@ void * __init __alloc_bootmem_low(unsigned long size, unsigned long align,
404{ 404{
405 return ___alloc_bootmem(size, align, goal, ARCH_LOW_ADDRESS_LIMIT); 405 return ___alloc_bootmem(size, align, goal, ARCH_LOW_ADDRESS_LIMIT);
406} 406}
407
408void * __init __alloc_bootmem_low_nopanic(unsigned long size,
409 unsigned long align,
410 unsigned long goal)
411{
412 return ___alloc_bootmem_nopanic(size, align, goal,
413 ARCH_LOW_ADDRESS_LIMIT);
414}
415
416/**
417 * __alloc_bootmem_low_node - allocate low boot memory from a specific node
418 * @pgdat: node to allocate from
419 * @size: size of the request in bytes
420 * @align: alignment of the region
421 * @goal: preferred starting address of the region
422 *
423 * The goal is dropped if it can not be satisfied and the allocation will
424 * fall back to memory below @goal.
425 *
426 * Allocation may fall back to any node in the system if the specified node
427 * can not hold the requested memory.
428 *
429 * The function panics if the request can not be satisfied.
430 *
431 * Return: address of the allocated region.
432 */
433void * __init __alloc_bootmem_low_node(pg_data_t *pgdat, unsigned long size,
434 unsigned long align, unsigned long goal)
435{
436 if (WARN_ON_ONCE(slab_is_available()))
437 return kzalloc_node(size, GFP_NOWAIT, pgdat->node_id);
438
439 return ___alloc_bootmem_node(pgdat, size, align, goal,
440 ARCH_LOW_ADDRESS_LIMIT);
441}