]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformBdsLib: rebase to EfiEventGroupSignal
authorLaszlo Ersek <lersek@redhat.com>
Tue, 22 Mar 2016 16:37:36 +0000 (17:37 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 23 Mar 2016 11:06:20 +0000 (12:06 +0100)
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c

index 0abba98dfe0307e3629f18fb667cee87f365a1c0..4a2f7f332d34f85221f1e5dd0bb8f4f6cc7e92a7 100644 (file)
@@ -1163,27 +1163,6 @@ Returns:
 }\r
 \r
 \r
-/**\r
-  Empty callback function executed when the EndOfDxe event group is signaled.\r
-\r
-  We only need this function because we'd like to signal EndOfDxe, and for that\r
-  we need to create an event, with a callback function.\r
-\r
-  @param[in] Event    Event whose notification function is being invoked.\r
-  @param[in] Context  The pointer to the notification function's context, which\r
-                      is implementation-dependent.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-OnEndOfDxe (\r
-  IN EFI_EVENT Event,\r
-  IN VOID      *Context\r
-  )\r
-{\r
-}\r
-\r
-\r
 /**\r
   Save the S3 boot script.\r
 \r
@@ -1259,7 +1238,6 @@ Returns:
 {\r
   EFI_STATUS                         Status;\r
   EFI_BOOT_MODE                      BootMode;\r
-  EFI_EVENT                          EndOfDxeEvent;\r
 \r
   DEBUG ((EFI_D_INFO, "PlatformBdsPolicyBehavior\n"));\r
 \r
@@ -1273,13 +1251,7 @@ Returns:
   // installed after PCI enumeration completes, we must not trigger the S3 save\r
   // earlier, hence we can't signal End-of-Dxe earlier.\r
   //\r
-  Status = gBS->CreateEventEx (EVT_NOTIFY_SIGNAL, TPL_CALLBACK, OnEndOfDxe,\r
-                  NULL /* NotifyContext */, &gEfiEndOfDxeEventGroupGuid,\r
-                  &EndOfDxeEvent);\r
-  if (!EFI_ERROR (Status)) {\r
-    gBS->SignalEvent (EndOfDxeEvent);\r
-    gBS->CloseEvent (EndOfDxeEvent);\r
-  }\r
+  EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid);\r
 \r
   if (QemuFwCfgS3Enabled ()) {\r
     //\r