OvmfPkg/CpuS3DataDxe: superficial cleanups
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Feb 2020 22:11:55 +0000 (23:11 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 4 Mar 2020 12:22:07 +0000 (12:22 +0000)
Sort the [Packages], [LibraryClasses], and [Pcd] sections in the INF file.
Pad the usage notes (CONSUMES, PRODUCES) in the [Pcd] section.

Sort the Library #includes in the C file.

This patch is functionally a no-op.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200226221156.29589-16-lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
OvmfPkg/CpuS3DataDxe/CpuS3Data.c
OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf

index 2bb60d5..8bb9807 100644 (file)
@@ -22,10 +22,10 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/DebugLib.h>\r
-#include <Library/MtrrLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
+#include <Library/MtrrLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
 \r
 #include <Protocol/MpService.h>\r
 #include <Guid/EventGroup.h>\r
index 0ad8a0b..f9679e0 100644 (file)
   CpuS3Data.c\r
 \r
 [Packages]\r
-  MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
+  MdePkg/MdePkg.dec\r
   UefiCpuPkg/UefiCpuPkg.dec\r
 \r
 [LibraryClasses]\r
-  UefiDriverEntryPoint\r
-  UefiBootServicesTableLib\r
+  BaseLib\r
   BaseMemoryLib\r
   DebugLib\r
-  BaseLib\r
-  MtrrLib\r
   MemoryAllocationLib\r
+  MtrrLib\r
+  UefiBootServicesTableLib\r
+  UefiDriverEntryPoint\r
 \r
 [Guids]\r
   gEfiEndOfDxeEventGroupGuid         ## CONSUMES   ## Event\r
@@ -53,9 +53,9 @@
   gEfiMpServiceProtocolGuid          ## CONSUMES\r
 \r
 [Pcd]\r
-  gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize    ## CONSUMES\r
-  gUefiCpuPkgTokenSpaceGuid.PcdCpuS3DataAddress  ## PRODUCES\r
-  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable                    ## CONSUMES\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize                       ## CONSUMES\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuS3DataAddress                     ## PRODUCES\r
 \r
 [Depex]\r
   gEfiMpServiceProtocolGuid\r