diff options
author | Ard Biesheuvel <ard.biesheuvel@arm.com> | 2020-05-28 11:17:41 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-06-06 07:49:42 +0000 |
commit | 037d86dd7a9ef36c85bf416d358f2ef60a4940b3 (patch) | |
tree | 48f00f8d9f7d8cec0c7bef6079143cbe8ad73d54 /ArmPkg | |
parent | 344f615df9c6b636a9125d477c5889ce821004cc (diff) | |
download | edk2-037d86dd7a9ef36c85bf416d358f2ef60a4940b3.tar.gz |
ArmPkg/PlatformBootManagerLib: don't connect all devices on each boot
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>
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c index 1e9b736993..15c5cac1be 100644 --- a/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c +++ b/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c @@ -754,11 +754,6 @@ PlatformBootManagerAfterConsole ( }
//
- // Connect the rest of the devices.
- //
- EfiBootManagerConnectAll ();
-
- //
// On ARM, there is currently no reason to use the phased capsule
// update approach where some capsules are dispatched before EndOfDxe
// and some are dispatched after. So just handle all capsules here,
@@ -768,11 +763,6 @@ PlatformBootManagerAfterConsole ( HandleCapsules ();
//
- // Enumerate all possible boot options.
- //
- EfiBootManagerRefreshAllBootOption ();
-
- //
// Register UEFI Shell
//
Key.ScanCode = SCAN_NULL;
|