]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
MdeModulePkg/UefiBootManagerLib: Remove the useless perf codes
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / BmBoot.c
index 64042338eab0b575f610075e581c18f620fdc651..ce19ae4006604a9cc80261bda04e0254b949fd12 100644 (file)
@@ -27,6 +27,29 @@ EFI_BOOT_MANAGER_LEGACY_BOOT                 mBmLegacyBoot              = NULL;
 EFI_GUID mBmHardDriveBootVariableGuid = { 0xfab7e9e1, 0x39dd, 0x4f2b, { 0x84, 0x08, 0xe2, 0x0e, 0x90, 0x6c, 0xb6, 0xde } };\r
 EFI_GUID mBmAutoCreateBootOptionGuid  = { 0x8108ac4e, 0x9f11, 0x4d59, { 0x85, 0x0e, 0xe2, 0x1a, 0x52, 0x2c, 0x59, 0xb2 } };\r
 \r
+/**\r
+\r
+  End Perf entry of BDS\r
+\r
+  @param  Event                 The triggered event.\r
+  @param  Context               Context for this event.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+BmEndOfBdsPerfCode (\r
+  IN EFI_EVENT  Event,\r
+  IN VOID       *Context\r
+  )\r
+{\r
+  //\r
+  // Record the performance data for End of BDS\r
+  //\r
+  PERF_END(NULL, "BDS", NULL, 0);\r
+\r
+  return ;\r
+}\r
+\r
 /**\r
   The function registers the legacy boot support capabilities.\r
 \r
@@ -1830,7 +1853,7 @@ EfiBootManagerBoot (
         //\r
         Status = EfiCreateEventLegacyBootEx(\r
                    TPL_NOTIFY,\r
-                   BmWriteBootToOsPerformanceData,\r
+                   BmEndOfBdsPerfCode,\r
                    NULL, \r
                    &LegacyBootEvent\r
                    );\r
@@ -1871,7 +1894,7 @@ EfiBootManagerBoot (
   // Write boot to OS performance data for UEFI boot\r
   //\r
   PERF_CODE (\r
-    BmWriteBootToOsPerformanceData (NULL, NULL);\r
+    BmEndOfBdsPerfCode (NULL, NULL);\r
   );\r
 \r
   REPORT_STATUS_CODE (EFI_PROGRESS_CODE, PcdGet32 (PcdProgressCodeOsLoaderStart));\r