]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Merge tag 'efi-urgent' into x86/urgent
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 5 Jun 2014 20:09:44 +0000 (13:09 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 5 Jun 2014 20:09:44 +0000 (13:09 -0700)
 * Fix earlyprintk=efi,keep support by switching to an ioremap() mapping
   of the framebuffer when early_ioremap() is no longer available and
   dropping __init from functions that may be invoked after
   free_initmem() - Dave Young

 * We shouldn't be exporting the EFI runtime map in sysfs if not using
   the new 1:1 EFI mapping code since in that case the mappings are not
   static across a kexec reboot - Dave Young

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/platform/efi/efi.c

index 3781dd39e8bd55a03b8acd779113f40c151442b4..4d36932ca4f2d3ca06503682daec1071bd225286 100644 (file)
@@ -919,6 +919,9 @@ static void __init save_runtime_map(void)
        void *tmp, *p, *q = NULL;
        int count = 0;
 
+       if (efi_enabled(EFI_OLD_MEMMAP))
+               return;
+
        for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
                md = p;