summaryrefslogtreecommitdiffstats
path: root/mm/memblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memblock.c')
-rw-r--r--mm/memblock.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/mm/memblock.c b/mm/memblock.c
index a838c50ca9a8..0ab30d0185bc 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -1434,41 +1434,6 @@ void * __init memblock_alloc_try_nid_raw(
1434} 1434}
1435 1435
1436/** 1436/**
1437 * memblock_alloc_try_nid_nopanic - allocate boot memory block
1438 * @size: size of memory block to be allocated in bytes
1439 * @align: alignment of the region and block's size
1440 * @min_addr: the lower bound of the memory region from where the allocation
1441 * is preferred (phys address)
1442 * @max_addr: the upper bound of the memory region from where the allocation
1443 * is preferred (phys address), or %MEMBLOCK_ALLOC_ACCESSIBLE to
1444 * allocate only from memory limited by memblock.current_limit value
1445 * @nid: nid of the free area to find, %NUMA_NO_NODE for any node
1446 *
1447 * Public function, provides additional debug information (including caller
1448 * info), if enabled. This function zeroes the allocated memory.
1449 *
1450 * Return:
1451 * Virtual address of allocated memory block on success, NULL on failure.
1452 */
1453void * __init memblock_alloc_try_nid_nopanic(
1454 phys_addr_t size, phys_addr_t align,
1455 phys_addr_t min_addr, phys_addr_t max_addr,
1456 int nid)
1457{
1458 void *ptr;
1459
1460 memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=%pa max_addr=%pa %pF\n",
1461 __func__, (u64)size, (u64)align, nid, &min_addr,
1462 &max_addr, (void *)_RET_IP_);
1463
1464 ptr = memblock_alloc_internal(size, align,
1465 min_addr, max_addr, nid);
1466 if (ptr)
1467 memset(ptr, 0, size);
1468 return ptr;
1469}
1470
1471/**
1472 * memblock_alloc_try_nid - allocate boot memory block 1437 * memblock_alloc_try_nid - allocate boot memory block
1473 * @size: size of memory block to be allocated in bytes 1438 * @size: size of memory block to be allocated in bytes
1474 * @align: alignment of the region and block's size 1439 * @align: alignment of the region and block's size