diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/init_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index fef1d90d4f15..949708d7a481 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -706,15 +706,15 @@ void __init initmem_init(unsigned long start_pfn, | |||
706 | highstart_pfn = highend_pfn = max_pfn; | 706 | highstart_pfn = highend_pfn = max_pfn; |
707 | if (max_pfn > max_low_pfn) | 707 | if (max_pfn > max_low_pfn) |
708 | highstart_pfn = max_low_pfn; | 708 | highstart_pfn = max_low_pfn; |
709 | memory_present(0, 0, highend_pfn); | ||
710 | e820_register_active_regions(0, 0, highend_pfn); | 709 | e820_register_active_regions(0, 0, highend_pfn); |
710 | sparse_memory_present_with_active_regions(0); | ||
711 | printk(KERN_NOTICE "%ldMB HIGHMEM available.\n", | 711 | printk(KERN_NOTICE "%ldMB HIGHMEM available.\n", |
712 | pages_to_mb(highend_pfn - highstart_pfn)); | 712 | pages_to_mb(highend_pfn - highstart_pfn)); |
713 | num_physpages = highend_pfn; | 713 | num_physpages = highend_pfn; |
714 | high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1; | 714 | high_memory = (void *) __va(highstart_pfn * PAGE_SIZE - 1) + 1; |
715 | #else | 715 | #else |
716 | memory_present(0, 0, max_low_pfn); | ||
717 | e820_register_active_regions(0, 0, max_low_pfn); | 716 | e820_register_active_regions(0, 0, max_low_pfn); |
717 | sparse_memory_present_with_active_regions(0); | ||
718 | num_physpages = max_low_pfn; | 718 | num_physpages = max_low_pfn; |
719 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; | 719 | high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; |
720 | #endif | 720 | #endif |