init.c (7bf02ea22c6cdd09e2d3f1d3c3fe366b834ae9af) | init.c (7b7bf499f79de3f6c85a340c8453a78789523f85) |
---|---|
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. --- 259 unchanged lines hidden (view full) --- 268 */ 269 arm_adjust_dma_zone(zone_size, zhole_size, 270 ARM_DMA_ZONE_SIZE >> PAGE_SHIFT); 271#endif 272 273 free_area_init_node(0, zone_size, min, zhole_size); 274} 275 | 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. --- 259 unchanged lines hidden (view full) --- 268 */ 269 arm_adjust_dma_zone(zone_size, zhole_size, 270 ARM_DMA_ZONE_SIZE >> PAGE_SHIFT); 271#endif 272 273 free_area_init_node(0, zone_size, min, zhole_size); 274} 275 |
276#ifndef CONFIG_SPARSEMEM | 276#ifdef CONFIG_HAVE_ARCH_PFN_VALID |
277int pfn_valid(unsigned long pfn) 278{ 279 return memblock_is_memory(pfn << PAGE_SHIFT); 280} 281EXPORT_SYMBOL(pfn_valid); | 277int pfn_valid(unsigned long pfn) 278{ 279 return memblock_is_memory(pfn << PAGE_SHIFT); 280} 281EXPORT_SYMBOL(pfn_valid); |
282#endif |
|
282 | 283 |
284#ifndef CONFIG_SPARSEMEM |
|
283static void arm_memory_present(void) 284{ 285} 286#else 287static void arm_memory_present(void) 288{ 289 struct memblock_region *reg; 290 --- 426 unchanged lines hidden --- | 285static void arm_memory_present(void) 286{ 287} 288#else 289static void arm_memory_present(void) 290{ 291 struct memblock_region *reg; 292 --- 426 unchanged lines hidden --- |