]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/PlatformBootManagerLib: don't connect all devices on each boot
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Thu, 28 May 2020 09:17:41 +0000 (11:17 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 6 Jun 2020 07:49:42 +0000 (07:49 +0000)
In order to avoid boot delays from devices such as network controllers
that may not even be involved in booting at all, drop the call to
EfiBootManagerConnectAll () from the boot path. It will be called by
UiApp, so when going through the menu, all devices will be connected
as usual, but for the default boot, it is really not necessary so
let's get rid of this.

Enumerating all possible boot options and creating Boot#### variables
for them is equally unnecessary in the default case, and also happens
automatically in UiApp, so drop that as well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c

index 1e9b736993d08c72b509ac7cef22ac250aec50fc..15c5cac1bea05feb7a5c44cbe948cc94e73f3dfa 100644 (file)
@@ -753,11 +753,6 @@ PlatformBootManagerAfterConsole (
     }\r
   }\r
 \r
-  //\r
-  // Connect the rest of the devices.\r
-  //\r
-  EfiBootManagerConnectAll ();\r
-\r
   //\r
   // On ARM, there is currently no reason to use the phased capsule\r
   // update approach where some capsules are dispatched before EndOfDxe\r
@@ -767,11 +762,6 @@ PlatformBootManagerAfterConsole (
   //\r
   HandleCapsules ();\r
 \r
-  //\r
-  // Enumerate all possible boot options.\r
-  //\r
-  EfiBootManagerRefreshAllBootOption ();\r
-\r
   //\r
   // Register UEFI Shell\r
   //\r