aboutsummaryrefslogtreecommitdiffstats
path: root/mm/bootmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r--mm/bootmem.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c
index 9d0f26664b3b..d1c7a79d6f3a 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -803,28 +803,6 @@ void * __init __alloc_bootmem_node_high(pg_data_t *pgdat, unsigned long size,
803 803
804} 804}
805 805
806#ifdef CONFIG_SPARSEMEM
807/**
808 * alloc_bootmem_section - allocate boot memory from a specific section
809 * @size: size of the request in bytes
810 * @section_nr: sparse map section to allocate from
811 *
812 * Return NULL on failure.
813 */
814void * __init alloc_bootmem_section(unsigned long size,
815 unsigned long section_nr)
816{
817 bootmem_data_t *bdata;
818 unsigned long pfn, goal;
819
820 pfn = section_nr_to_pfn(section_nr);
821 goal = pfn << PAGE_SHIFT;
822 bdata = &bootmem_node_data[early_pfn_to_nid(pfn)];
823
824 return alloc_bootmem_bdata(bdata, size, SMP_CACHE_BYTES, goal, 0);
825}
826#endif
827
828#ifndef ARCH_LOW_ADDRESS_LIMIT 806#ifndef ARCH_LOW_ADDRESS_LIMIT
829#define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL 807#define ARCH_LOW_ADDRESS_LIMIT 0xffffffffUL
830#endif 808#endif