diff options
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/init.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index c9a517c8bbb6..33890fd267cb 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -412,19 +412,11 @@ void __init mem_init(void) | |||
412 | iommu_init(); | 412 | iommu_init(); |
413 | 413 | ||
414 | high_memory = NULL; | 414 | high_memory = NULL; |
415 | for_each_online_pgdat(pgdat) | ||
416 | high_memory = max_t(void *, high_memory, | ||
417 | __va(pgdat_end_pfn(pgdat) << PAGE_SHIFT)); | ||
415 | 418 | ||
416 | for_each_online_pgdat(pgdat) { | 419 | free_all_bootmem(); |
417 | void *node_high_memory; | ||
418 | |||
419 | if (pgdat->node_spanned_pages) | ||
420 | free_all_bootmem_node(pgdat); | ||
421 | |||
422 | node_high_memory = (void *)__va((pgdat->node_start_pfn + | ||
423 | pgdat->node_spanned_pages) << | ||
424 | PAGE_SHIFT); | ||
425 | if (node_high_memory > high_memory) | ||
426 | high_memory = node_high_memory; | ||
427 | } | ||
428 | 420 | ||
429 | /* Set this up early, so we can take care of the zero page */ | 421 | /* Set this up early, so we can take care of the zero page */ |
430 | cpu_cache_init(); | 422 | cpu_cache_init(); |