Skip to contentSkip to conversation

x86: use reboot_type on EFI 32

PATCH Applied Huang, Ying 2 participants 2 messages Jan 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 x86: use reboot_type on EFI 32

This patch makes reboot_type of BOOT_EFI is used on i386 too. Because correpsonding reboot code of i386 and x86_64 is merged.

---
 arch/x86/kernel/efi.c |    2 --
 1 file changed, 2 deletions(-)
arch/x86/kernel/efi.c +0 -2
@@ -371,11 +371,9 @@ void __init efi_init(void)
 		printk(KERN_WARNING "Kernel-defined memdesc"
 		       "doesn't match the one from EFI!\n");
 
-#ifdef CONFIG_X86_64
 	/* Setup for EFI runtime service */
 	reboot_type = BOOT_EFI;
 
-#endif
 #if EFI_DEBUG
 	print_efi_memmap();
 #endif
Applied
#1 lore raw

arch/x86/kernel/efi.c void __init efi_init(void) · line 378

Quoted 8 lines · Huang, Ying

This patch makes reboot_type of BOOT_EFI is used on i386 too. Because correpsonding reboot code of i386 and x86_64 is merged.

arch/x86/kernel/efi.c +0 -2
-#ifdef CONFIG_X86_64
 	/* Setup for EFI runtime service */
 	reboot_type = BOOT_EFI;
 
-#endif

thanks, applied.

Ingo