]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / Library / AcpiTimerLib / AcpiTimerLib.c
index 3d73111ced9a1e3b74138ce4fc1428356248746a..13c6dcac1f4f4f4aa369aec4584aea9228549144 100644 (file)
 **/\r
 VOID\r
 InternalAcpiDelay (\r
-  IN      UINT32                    Delay\r
+  IN      UINT32  Delay\r
   )\r
 {\r
-  UINT32                            Ticks;\r
-  UINT32                            Times;\r
+  UINT32  Ticks;\r
+  UINT32  Times;\r
 \r
-  Times    = Delay >> 22;\r
-  Delay   &= BIT22 - 1;\r
+  Times  = Delay >> 22;\r
+  Delay &= BIT22 - 1;\r
   do {\r
     //\r
     // The target timer count is calculated here\r
     //\r
-    Ticks    = InternalAcpiGetTimerTick () + Delay;\r
-    Delay    = BIT22;\r
+    Ticks = InternalAcpiGetTimerTick () + Delay;\r
+    Delay = BIT22;\r
     //\r
     // Wait until time out\r
     // Delay >= 2^23 could not be handled by this function\r
@@ -68,7 +68,7 @@ InternalAcpiDelay (
 UINTN\r
 EFIAPI\r
 MicroSecondDelay (\r
-  IN      UINTN                     MicroSeconds\r
+  IN      UINTN  MicroSeconds\r
   )\r
 {\r
   InternalAcpiDelay (\r
@@ -96,7 +96,7 @@ MicroSecondDelay (
 UINTN\r
 EFIAPI\r
 NanoSecondDelay (\r
-  IN      UINTN                     NanoSeconds\r
+  IN      UINTN  NanoSeconds\r
   )\r
 {\r
   InternalAcpiDelay (\r
@@ -158,8 +158,8 @@ GetPerformanceCounter (
 UINT64\r
 EFIAPI\r
 GetPerformanceCounterProperties (\r
-  OUT      UINT64                    *StartValue   OPTIONAL,\r
-  OUT      UINT64                    *EndValue     OPTIONAL\r
+  OUT      UINT64  *StartValue   OPTIONAL,\r
+  OUT      UINT64  *EndValue     OPTIONAL\r
   )\r
 {\r
   if (StartValue != NULL) {\r
@@ -187,7 +187,7 @@ GetPerformanceCounterProperties (
 UINT64\r
 EFIAPI\r
 GetTimeInNanoSecond (\r
-  IN      UINT64                     Ticks\r
+  IN      UINT64  Ticks\r
   )\r
 {\r
   UINT64  NanoSeconds;\r
@@ -204,7 +204,7 @@ GetTimeInNanoSecond (
   // Frequency < 0x100000000, so Remainder < 0x100000000, then (Remainder * 1,000,000,000)\r
   // will not overflow 64-bit.\r
   //\r
-  NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), ACPI_TIMER_FREQUENCY);\r
+  NanoSeconds += DivU64x32 (MultU64x32 ((UINT64)Remainder, 1000000000u), ACPI_TIMER_FREQUENCY);\r
 \r
   return NanoSeconds;\r
 }\r