]> git.baikalelectronics.ru Git - kernel.git/commit
x86/efi: Delete dead code when checking for non-native
authorMatt Fleming <matt.fleming@intel.com>
Fri, 10 Jan 2014 13:01:39 +0000 (13:01 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 4 Mar 2014 21:24:59 +0000 (21:24 +0000)
commitd8c397d76c9e4362c0969bf33e9e875067929586
tree8260e2544cd309c5898da9308100fe136c39fc21
parent4621561c1360f2d5ea745baf722d8fafec63230d
x86/efi: Delete dead code when checking for non-native

Both efi_free_boot_services() and efi_enter_virtual_mode() are invoked
from init/main.c, but only if the EFI runtime services are available.
This is not the case for non-native boots, e.g. where a 64-bit kernel is
booted with 32-bit EFI firmware.

Delete the dead code.

Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi.c