init.c (57b8628bb0ac4e47c806e45c5bbd89282e93869b) init.c (14904927fcef6bb881fd995b478a0d2e700c1818)
1/*
2 * linux/arch/arm/mm/init.c
3 *
4 * Copyright (C) 1995-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 279 unchanged lines hidden (view full) ---

288int pfn_valid(unsigned long pfn)
289{
290 return memblock_is_memory(__pfn_to_phys(pfn));
291}
292EXPORT_SYMBOL(pfn_valid);
293#endif
294
295#ifndef CONFIG_SPARSEMEM
1/*
2 * linux/arch/arm/mm/init.c
3 *
4 * Copyright (C) 1995-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 279 unchanged lines hidden (view full) ---

288int pfn_valid(unsigned long pfn)
289{
290 return memblock_is_memory(__pfn_to_phys(pfn));
291}
292EXPORT_SYMBOL(pfn_valid);
293#endif
294
295#ifndef CONFIG_SPARSEMEM
296static void arm_memory_present(void)
296static void __init arm_memory_present(void)
297{
298}
299#else
297{
298}
299#else
300static void arm_memory_present(void)
300static void __init arm_memory_present(void)
301{
302 struct memblock_region *reg;
303
304 for_each_memblock(memory, reg)
305 memory_present(0, memblock_region_memory_base_pfn(reg),
306 memblock_region_memory_end_pfn(reg));
307}
308#endif

--- 451 unchanged lines hidden ---
301{
302 struct memblock_region *reg;
303
304 for_each_memblock(memory, reg)
305 memory_present(0, memblock_region_memory_base_pfn(reg),
306 memblock_region_memory_end_pfn(reg));
307}
308#endif

--- 451 unchanged lines hidden ---