x86: EFI runtime service support: remove duplicated code from efi_32.c
[sfrench/cifs-2.6.git] / arch / x86 / kernel / setup_32.c
index e9ede0fc585acd0f7896bdf0ce976d03fc04392f..32fc87adc4a35b1edd3cd8d3f2a76f59915a0338 100644 (file)
@@ -618,16 +618,9 @@ void __init setup_arch(char **cmdline_p)
        pre_setup_arch_hook();
        early_cpu_init();
 
-       /*
-        * FIXME: This isn't an official loader_type right
-        * now but does currently work with elilo.
-        * If we were configured as an EFI kernel, check to make
-        * sure that we were loaded correctly from elilo and that
-        * the system table is valid.  If not, then initialize normally.
-        */
 #ifdef CONFIG_EFI
-       if ((boot_params.hdr.type_of_loader == 0x50) &&
-           boot_params.efi_info.efi_systab)
+       if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
+                    "EL32", 4))
                efi_enabled = 1;
 #endif