summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/Library/DxeTimerLib
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-28 16:50:26 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-28 16:50:26 +0000
commitd18d8a1d0e370f8ce6ccc2725f4170586d457e53 (patch)
tree7e852b6f4c4277a38734d09870eae180a113b7e9 /EmulatorPkg/Library/DxeTimerLib
parentbb89ec1a7ec2f8d35033df9e47b3604925da3bd3 (diff)
downloadedk2-d18d8a1d0e370f8ce6ccc2725f4170586d457e53.tar.gz
edk2-d18d8a1d0e370f8ce6ccc2725f4170586d457e53.tar.bz2
edk2-d18d8a1d0e370f8ce6ccc2725f4170586d457e53.zip
EmulatorPkg: Remove all trailing whitespace
Signed-off-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11919 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmulatorPkg/Library/DxeTimerLib')
-rw-r--r--EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c18
-rw-r--r--EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf2
2 files changed, 10 insertions, 10 deletions
diff --git a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
index 14bb17f00e..032fec4b84 100644
--- a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
+++ b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
@@ -36,15 +36,15 @@ RegisterTimerArchProtocol (
)
{
EFI_STATUS Status;
-
+
Status = gBS->LocateProtocol (&gEfiTimerArchProtocolGuid, NULL, (VOID **)&gTimerAp);
- if (!EFI_ERROR (Status)) {
+ if (!EFI_ERROR (Status)) {
Status = gTimerAp->GetTimerPeriod (gTimerAp, &gTimerPeriod);
ASSERT_EFI_ERROR (Status);
// Convert to Nanoseconds.
gTimerPeriod = MultU64x32 (gTimerPeriod, 100);
-
+
if (gTimerEvent == NULL) {
Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, (VOID **)&gTimerEvent);
ASSERT_EFI_ERROR (Status);
@@ -93,21 +93,21 @@ NanoSecondDelay (
EFI_STATUS Status;
UINT64 HundredNanoseconds;
UINTN Index;
-
- if ((gTimerPeriod != 0) &&
- ((UINT64)NanoSeconds > gTimerPeriod) &&
+
+ if ((gTimerPeriod != 0) &&
+ ((UINT64)NanoSeconds > gTimerPeriod) &&
(EfiGetCurrentTpl () == TPL_APPLICATION)) {
//
// This stall is long, so use gBS->WaitForEvent () to yield CPU to DXE Core
//
-
+
HundredNanoseconds = DivU64x32 (NanoSeconds, 100);
Status = gBS->SetTimer (gTimerEvent, TimerRelative, HundredNanoseconds);
ASSERT_EFI_ERROR (Status);
Status = gBS->WaitForEvent (sizeof (gTimerEvent)/sizeof (EFI_EVENT), &gTimerEvent, &Index);
ASSERT_EFI_ERROR (Status);
-
+
} else {
gEmuThunk->Sleep (NanoSeconds);
}
@@ -172,7 +172,7 @@ GetPerformanceCounterProperties (
if (EndValue != NULL) {
*EndValue = (UINT64)-1LL;
}
-
+
return gEmuThunk->QueryPerformanceFrequency ();
}
diff --git a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf
index 51479373ff..19f133e952 100644
--- a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf
+++ b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf
@@ -46,6 +46,6 @@
EmuThunkLib
UefiLib
UefiBootServicesTableLib
-
+
[Protocols]
gEfiTimerArchProtocolGuid