aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 3f17ea146f0e..bbc3346e8bcd 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -273,13 +273,15 @@ static void __init arm_bootmem_free(unsigned long min, unsigned long max_low,
273 free_area_init_node(0, zone_size, min, zhole_size); 273 free_area_init_node(0, zone_size, min, zhole_size);
274} 274}
275 275
276#ifndef CONFIG_SPARSEMEM 276#ifdef CONFIG_HAVE_ARCH_PFN_VALID
277int pfn_valid(unsigned long pfn) 277int pfn_valid(unsigned long pfn)
278{ 278{
279 return memblock_is_memory(pfn << PAGE_SHIFT); 279 return memblock_is_memory(pfn << PAGE_SHIFT);
280} 280}
281EXPORT_SYMBOL(pfn_valid); 281EXPORT_SYMBOL(pfn_valid);
282#endif
282 283
284#ifndef CONFIG_SPARSEMEM
283static void arm_memory_present(void) 285static void arm_memory_present(void)
284{ 286{
285} 287}