diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2021-12-05 14:54:17 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 053e878bfb5c9d5eca779789b62891add30b14ba (patch) | |
tree | 1cdf5bacb37306e373b8d14bd67c5b3e4f3b269f /UefiCpuPkg/CpuFeatures | |
parent | 91415a36ae7aaeabb2bbab3762f39544f9aed683 (diff) | |
download | edk2-053e878bfb5c9d5eca779789b62891add30b14ba.tar.gz edk2-053e878bfb5c9d5eca779789b62891add30b14ba.tar.bz2 edk2-053e878bfb5c9d5eca779789b62891add30b14ba.zip |
UefiCpuPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the UefiCpuPkg package
Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuFeatures')
-rw-r--r-- | UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c | 18 | ||||
-rw-r--r-- | UefiCpuPkg/CpuFeatures/CpuFeaturesPei.c | 14 |
2 files changed, 15 insertions, 17 deletions
diff --git a/UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c b/UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c index 230b9fad7e..0a0e14a134 100644 --- a/UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c +++ b/UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c @@ -18,7 +18,6 @@ #include <Protocol/SmmConfiguration.h>
#include <Guid/CpuFeaturesInitDone.h>
-
/**
Worker function to perform CPU feature initialization.
@@ -28,8 +27,8 @@ CpuFeaturesInitializeWorker ( VOID
)
{
- EFI_STATUS Status;
- EFI_HANDLE Handle;
+ EFI_STATUS Status;
+ EFI_HANDLE Handle;
CpuFeaturesDetect ();
@@ -57,12 +56,12 @@ CpuFeaturesInitializeWorker ( VOID
EFIAPI
SmmConfigurationEventNotify (
- IN EFI_EVENT Event,
- IN VOID *Context
+ IN EFI_EVENT Event,
+ IN VOID *Context
)
{
- EFI_STATUS Status;
- EFI_SMM_CONFIGURATION_PROTOCOL *SmmConfiguration;
+ EFI_STATUS Status;
+ EFI_SMM_CONFIGURATION_PROTOCOL *SmmConfiguration;
//
// Make sure this notification is for this handler
@@ -91,8 +90,8 @@ SmmConfigurationEventNotify ( EFI_STATUS
EFIAPI
CpuFeaturesDxeInitialize (
- IN EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE *SystemTable
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
)
{
VOID *Registration;
@@ -133,4 +132,3 @@ CpuFeaturesDxeInitialize ( return EFI_SUCCESS;
}
-
diff --git a/UefiCpuPkg/CpuFeatures/CpuFeaturesPei.c b/UefiCpuPkg/CpuFeatures/CpuFeaturesPei.c index be559a9595..8448668e5a 100644 --- a/UefiCpuPkg/CpuFeatures/CpuFeaturesPei.c +++ b/UefiCpuPkg/CpuFeatures/CpuFeaturesPei.c @@ -16,7 +16,7 @@ #include <Guid/CpuFeaturesInitDone.h>
-EFI_PEI_PPI_DESCRIPTOR mPeiCpuFeaturesInitDonePpiDesc = {
+EFI_PEI_PPI_DESCRIPTOR mPeiCpuFeaturesInitDonePpiDesc = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEdkiiCpuFeaturesInitDoneGuid,
NULL
@@ -40,14 +40,15 @@ CpuFeaturesPeimInitialize ( IN CONST EFI_PEI_SERVICES **PeiServices
)
{
- EFI_STATUS Status;
- EFI_BOOT_MODE BootMode;
+ EFI_STATUS Status;
+ EFI_BOOT_MODE BootMode;
Status = PeiServicesGetBootMode (&BootMode);
ASSERT_EFI_ERROR (Status);
- if (BootMode == BOOT_ON_S3_RESUME &&
- !PcdGetBool (PcdCpuFeaturesInitOnS3Resume)) {
+ if ((BootMode == BOOT_ON_S3_RESUME) &&
+ !PcdGetBool (PcdCpuFeaturesInitOnS3Resume))
+ {
//
// Does nothing when if PcdCpuFeaturesInitOnS3Resume is FLASE
// on S3 boot mode
@@ -62,7 +63,7 @@ CpuFeaturesPeimInitialize ( //
// Install CPU Features Init Done PPI
//
- Status = PeiServicesInstallPpi(&mPeiCpuFeaturesInitDonePpiDesc);
+ Status = PeiServicesInstallPpi (&mPeiCpuFeaturesInitDonePpiDesc);
ASSERT_EFI_ERROR (Status);
//
@@ -72,4 +73,3 @@ CpuFeaturesPeimInitialize ( return EFI_SUCCESS;
}
-
|