diff options
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 8bbb9a972e71..105d1d4f420b 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -225,20 +225,6 @@ static int __init check_initrd(struct meminfo *mi) | |||
225 | return initrd_node; | 225 | return initrd_node; |
226 | } | 226 | } |
227 | 227 | ||
228 | static inline void map_memory_bank(struct membank *bank) | ||
229 | { | ||
230 | #ifdef CONFIG_MMU | ||
231 | struct map_desc map; | ||
232 | |||
233 | map.pfn = bank_pfn_start(bank); | ||
234 | map.virtual = __phys_to_virt(bank_phys_start(bank)); | ||
235 | map.length = bank_phys_size(bank); | ||
236 | map.type = MT_MEMORY; | ||
237 | |||
238 | create_mapping(&map); | ||
239 | #endif | ||
240 | } | ||
241 | |||
242 | static void __init bootmem_init_node(int node, struct meminfo *mi, | 228 | static void __init bootmem_init_node(int node, struct meminfo *mi, |
243 | unsigned long start_pfn, unsigned long end_pfn) | 229 | unsigned long start_pfn, unsigned long end_pfn) |
244 | { | 230 | { |
@@ -248,16 +234,6 @@ static void __init bootmem_init_node(int node, struct meminfo *mi, | |||
248 | int i; | 234 | int i; |
249 | 235 | ||
250 | /* | 236 | /* |
251 | * Map the memory banks for this node. | ||
252 | */ | ||
253 | for_each_nodebank(i, mi, node) { | ||
254 | struct membank *bank = &mi->bank[i]; | ||
255 | |||
256 | if (!bank->highmem) | ||
257 | map_memory_bank(bank); | ||
258 | } | ||
259 | |||
260 | /* | ||
261 | * Allocate the bootmem bitmap page. | 237 | * Allocate the bootmem bitmap page. |
262 | */ | 238 | */ |
263 | boot_pages = bootmem_bootmap_pages(end_pfn - start_pfn); | 239 | boot_pages = bootmem_bootmap_pages(end_pfn - start_pfn); |