]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Correct the calculating time out for BDS
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Feb 2008 08:10:35 +0000 (08:10 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Feb 2008 08:10:35 +0000 (08:10 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4751 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/BdsDxe/FrontPage.c

index 1d364bf692140f602b20920c48049fe012be322f..b7b9e0545b38431d51f0893d40943ee414112575 100644 (file)
@@ -919,6 +919,7 @@ Returns:
   EFI_STATUS                    Status;\r
   EFI_CONSOLE_CONTROL_PROTOCOL  *ConsoleControl;\r
 \r
+  PERF_START (0, "BdsTimeOut", "BDS", 0);\r
   //\r
   // Indicate if we need connect all in the platform setup\r
   //\r
@@ -949,9 +950,7 @@ Returns:
     UpdateFrontPageStrings ();\r
 \r
     gCallbackKey = 0;\r
-    PERF_START (0, "BdsTimeOut", "BDS", 0);\r
     Status = CallFrontPage ();\r
-    PERF_END (0, "BdsTimeOut", "BDS", 0);\r
 \r
     //\r
     // If gCallbackKey is greater than 1 and less or equal to 5,\r
@@ -1029,6 +1028,7 @@ Exit:
   // Note: The following lines of code only execute when Auto boot\r
   // takes affect\r
   //\r
+  PERF_END (0, "BdsTimeOut", "BDS", 0);\r
   Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID **) &ConsoleControl);\r
   ConsoleControl->SetMode (ConsoleControl, EfiConsoleControlScreenText);\r
 \r