aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_32.c
diff options
context:
space:
mode:
authorHuang, Ying <ying.huang@intel.com>2008-01-30 07:31:19 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:19 -0500
commite429795c68d3001ecae74f6465420c9f043b0ece (patch)
tree46e24522c3b7fbe7dc9f7fc63b4c942ff48e4070 /arch/x86/kernel/setup_32.c
parent9ad65e4748f55e3159283d7fa9d54fb30c086113 (diff)
x86: EFI runtime service support: remove duplicated code from efi_32.c
This patch removes the duplicated code between efi_32.c and efi.c. Signed-off-by: Huang Ying <ying.huang@intel.com> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/setup_32.c')
-rw-r--r--arch/x86/kernel/setup_32.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index e9ede0fc585a..32fc87adc4a3 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -618,16 +618,9 @@ void __init setup_arch(char **cmdline_p)
618 pre_setup_arch_hook(); 618 pre_setup_arch_hook();
619 early_cpu_init(); 619 early_cpu_init();
620 620
621 /*
622 * FIXME: This isn't an official loader_type right
623 * now but does currently work with elilo.
624 * If we were configured as an EFI kernel, check to make
625 * sure that we were loaded correctly from elilo and that
626 * the system table is valid. If not, then initialize normally.
627 */
628#ifdef CONFIG_EFI 621#ifdef CONFIG_EFI
629 if ((boot_params.hdr.type_of_loader == 0x50) && 622 if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
630 boot_params.efi_info.efi_systab) 623 "EL32", 4))
631 efi_enabled = 1; 624 efi_enabled = 1;
632#endif 625#endif
633 626