summaryrefslogtreecommitdiff
path: root/InOsEmuPkg/TimerDxe/Timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'InOsEmuPkg/TimerDxe/Timer.c')
-rw-r--r--InOsEmuPkg/TimerDxe/Timer.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/InOsEmuPkg/TimerDxe/Timer.c b/InOsEmuPkg/TimerDxe/Timer.c
index 143591395a..d19ced7dd9 100644
--- a/InOsEmuPkg/TimerDxe/Timer.c
+++ b/InOsEmuPkg/TimerDxe/Timer.c
@@ -326,6 +326,14 @@ Returns:
ASSERT_EFI_ERROR (Status);
//
+ // Start the timer thread at the default timer period
+ //
+ Status = mTimer.SetTimerPeriod (&mTimer, DEFAULT_TIMER_TICK_DURATION);
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
+ //
// Install the Timer Architectural Protocol onto a new handle
//
Handle = NULL;
@@ -339,13 +347,6 @@ Returns:
return Status;
}
- //
- // Start the timer thread at the default timer period
- //
- Status = mTimer.SetTimerPeriod (&mTimer, DEFAULT_TIMER_TICK_DURATION);
- if (EFI_ERROR (Status)) {
- return Status;
- }
return EFI_SUCCESS;
}