aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-17 13:02:45 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 04:38:34 -0400
commit593a0cc39046515a438ca9fcc168115961f9f503 (patch)
tree027b4e133a2f091ed132a75c29ad309402b8d6ac
parent064d25f12014ae1d97c2882f9ab874995321f2b2 (diff)
x86: move some function out of setup_bootmem_alloc
... to make it more like 64-bit. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/setup_32.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index 9692aeb8ecae..90a2b857b4a7 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -623,21 +623,6 @@ void __init setup_bootmem_allocator(void)
623 free_bootmem_with_active_regions(i, max_low_pfn); 623 free_bootmem_with_active_regions(i, max_low_pfn);
624 early_res_to_bootmem(0, max_low_pfn<<PAGE_SHIFT); 624 early_res_to_bootmem(0, max_low_pfn<<PAGE_SHIFT);
625 625
626#ifdef CONFIG_ACPI_SLEEP
627 /*
628 * Reserve low memory region for sleep support.
629 */
630 acpi_reserve_bootmem();
631#endif
632#ifdef CONFIG_X86_FIND_SMP_CONFIG
633 /*
634 * Find and reserve possible boot-time SMP configuration:
635 */
636 find_smp_config();
637#endif
638 reserve_crashkernel();
639
640 reserve_ibft_region();
641} 626}
642 627
643/* 628/*
@@ -792,6 +777,22 @@ void __init setup_arch(char **cmdline_p)
792 777
793 max_low_pfn = setup_memory(); 778 max_low_pfn = setup_memory();
794 779
780#ifdef CONFIG_ACPI_SLEEP
781 /*
782 * Reserve low memory region for sleep support.
783 */
784 acpi_reserve_bootmem();
785#endif
786#ifdef CONFIG_X86_FIND_SMP_CONFIG
787 /*
788 * Find and reserve possible boot-time SMP configuration:
789 */
790 find_smp_config();
791#endif
792 reserve_crashkernel();
793
794 reserve_ibft_region();
795
795#ifdef CONFIG_KVM_CLOCK 796#ifdef CONFIG_KVM_CLOCK
796 kvmclock_init(); 797 kvmclock_init();
797#endif 798#endif