Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (void *)&mCpu);\r
ASSERT_EFI_ERROR (Status);\r
\r
+ //\r
+ // Start the timer thread at the default timer period\r
+ //\r
+ Status = mTimer.SetTimerPeriod (&mTimer, DEFAULT_TIMER_TICK_DURATION);\r
+ if (EFI_ERROR (Status)) {\r
+ return Status;\r
+ }\r
+\r
//\r
// Install the Timer Architectural Protocol onto a new handle\r
//\r
return Status;\r
}\r
\r
- //\r
- // Start the timer thread at the default timer period\r
- //\r
- Status = mTimer.SetTimerPeriod (&mTimer, DEFAULT_TIMER_TICK_DURATION);\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
- }\r
\r
return EFI_SUCCESS;\r
}\r