]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
EmulatorPkg: Remove all trailing whitespace
[mirror_edk2.git] / EmulatorPkg / Library / DxeTimerLib / DxeTimerLib.c
index 14bb17f00e120835bd1cf0dd3c610e678d8f2976..032fec4b842237c44439a2fccb36ba8d79217416 100644 (file)
@@ -36,15 +36,15 @@ RegisterTimerArchProtocol (
   )\r
 {\r
   EFI_STATUS  Status;\r
-  \r
+\r
   Status = gBS->LocateProtocol (&gEfiTimerArchProtocolGuid, NULL, (VOID **)&gTimerAp);\r
-  if (!EFI_ERROR (Status)) {    \r
+  if (!EFI_ERROR (Status)) {\r
     Status = gTimerAp->GetTimerPeriod (gTimerAp, &gTimerPeriod);\r
     ASSERT_EFI_ERROR (Status);\r
 \r
     // Convert to Nanoseconds.\r
     gTimerPeriod = MultU64x32 (gTimerPeriod, 100);\r
-    \r
+\r
     if (gTimerEvent == NULL) {\r
       Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, (VOID **)&gTimerEvent);\r
       ASSERT_EFI_ERROR (Status);\r
@@ -93,21 +93,21 @@ NanoSecondDelay (
   EFI_STATUS  Status;\r
   UINT64      HundredNanoseconds;\r
   UINTN       Index;\r
-  \r
-  if ((gTimerPeriod != 0) && \r
-      ((UINT64)NanoSeconds > gTimerPeriod) && \r
+\r
+  if ((gTimerPeriod != 0) &&\r
+      ((UINT64)NanoSeconds > gTimerPeriod) &&\r
       (EfiGetCurrentTpl () == TPL_APPLICATION)) {\r
     //\r
     // This stall is long, so use gBS->WaitForEvent () to yield CPU to DXE Core\r
     //\r
-    \r
+\r
     HundredNanoseconds = DivU64x32 (NanoSeconds, 100);\r
     Status = gBS->SetTimer (gTimerEvent, TimerRelative, HundredNanoseconds);\r
     ASSERT_EFI_ERROR (Status);\r
 \r
     Status = gBS->WaitForEvent (sizeof (gTimerEvent)/sizeof (EFI_EVENT), &gTimerEvent, &Index);\r
     ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   } else {\r
     gEmuThunk->Sleep (NanoSeconds);\r
   }\r
@@ -172,7 +172,7 @@ GetPerformanceCounterProperties (
   if (EndValue != NULL) {\r
     *EndValue = (UINT64)-1LL;\r
   }\r
-  \r
+\r
   return gEmuThunk->QueryPerformanceFrequency ();\r
 }\r
 \r