]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/AcpiPlatformDxe: Unload after execution.
authorMarvin.Haeuser@outlook.com <Marvin.Haeuser@outlook.com>
Mon, 7 May 2018 09:08:06 +0000 (17:08 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 8 May 2018 03:18:18 +0000 (11:18 +0800)
AcpiPlatformDxe solely performs one-time tasks and does not expose
any services or create any events. Hence it can safely be unloaded
after the Entry Point execution by returning an error code.

V2: Return EFI_REQUEST_UNLOAD_IMAGE.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatform.c

index 44bdd94fa8db68b16caced77f4165429ef4bd9cb..8f335bde0d4692292a68daeff70d4b418eb9c0b0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Sample ACPI Platform Driver\r
 \r
-  Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -255,6 +255,9 @@ AcpiPlatformEntryPoint (
     }\r
   }\r
 \r
-  return EFI_SUCCESS;\r
+  //\r
+  // The driver does not require to be kept loaded.\r
+  //\r
+  return EFI_REQUEST_UNLOAD_IMAGE;\r
 }\r
 \r