diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-03-18 15:51:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:54 -0400 |
commit | 2b8106a0a3d3c1e5b69f091192bc99019ff4d81d (patch) | |
tree | 22bffad7c1e75ab93b5cb5eb22ce5f0649820d81 /arch/x86/kernel/head64.c | |
parent | 4a3575fd436aa98957184afd745e4ada8f1542d8 (diff) |
x86_64: do not reserve ramdisk two times
ramdisk is reserved via reserve_early in x86_64_start_kernel,
later early_res_to_bootmem() will convert to reservation in bootmem.
so don't need to reserve that again.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/head64.c')
-rw-r--r-- | arch/x86/kernel/head64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index d6d54faa84df..993c76773256 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -146,6 +146,7 @@ void __init x86_64_start_kernel(char * real_mode_data) | |||
146 | 146 | ||
147 | reserve_early(__pa_symbol(&_text), __pa_symbol(&_end), "TEXT DATA BSS"); | 147 | reserve_early(__pa_symbol(&_text), __pa_symbol(&_end), "TEXT DATA BSS"); |
148 | 148 | ||
149 | #ifdef CONFIG_BLK_DEV_INITRD | ||
149 | /* Reserve INITRD */ | 150 | /* Reserve INITRD */ |
150 | if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) { | 151 | if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) { |
151 | unsigned long ramdisk_image = boot_params.hdr.ramdisk_image; | 152 | unsigned long ramdisk_image = boot_params.hdr.ramdisk_image; |
@@ -153,6 +154,7 @@ void __init x86_64_start_kernel(char * real_mode_data) | |||
153 | unsigned long ramdisk_end = ramdisk_image + ramdisk_size; | 154 | unsigned long ramdisk_end = ramdisk_image + ramdisk_size; |
154 | reserve_early(ramdisk_image, ramdisk_end, "RAMDISK"); | 155 | reserve_early(ramdisk_image, ramdisk_end, "RAMDISK"); |
155 | } | 156 | } |
157 | #endif | ||
156 | 158 | ||
157 | reserve_ebda_region(); | 159 | reserve_ebda_region(); |
158 | 160 | ||