Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

efi/x86: Merge assignments of efi.runtime_version

efi.runtime_version is always set to the same value on both
existing code paths, so just set it earlier from a shared one.

Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

+2 -17
+2 -17
arch/x86/platform/efi/efi.c
··· 420 420 efi_systab.tables = systab32->tables; 421 421 } 422 422 423 + efi.runtime_version = hdr->revision; 424 + 423 425 efi_systab_report_header(hdr, efi_systab.fw_vendor); 424 426 early_memunmap(p, size); 425 427 ··· 872 870 } 873 871 874 872 efi_sync_low_kernel_mappings(); 875 - 876 - /* 877 - * Now that EFI is in virtual mode, update the function 878 - * pointers in the runtime service table to the new virtual addresses. 879 - * 880 - * Call EFI services through wrapper functions. 881 - */ 882 - efi.runtime_version = efi_systab.hdr.revision; 883 - 884 873 efi_native_runtime_setup(); 885 874 #endif 886 875 } ··· 957 964 } 958 965 959 966 efi_free_boot_services(); 960 - 961 - /* 962 - * Now that EFI is in virtual mode, update the function 963 - * pointers in the runtime service table to the new virtual addresses. 964 - * 965 - * Call EFI services through wrapper functions. 966 - */ 967 - efi.runtime_version = efi_systab.hdr.revision; 968 967 969 968 if (!efi_is_mixed()) 970 969 efi_native_runtime_setup();