X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FEvent%2FTimer.c;h=087e55e649521e51b8bae45cd39e6fed475f145c;hb=d1edec0a33dd6c10249c094c6ccb60c6c98d7b27;hp=3b17ae917cef7d1a50d6a260b2b83a20c2fca7de;hpb=3d78c020d22023d35d27b48817d73ff31a361ac7;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/Dxe/Event/Timer.c b/MdeModulePkg/Core/Dxe/Event/Timer.c index 3b17ae917c..087e55e649 100644 --- a/MdeModulePkg/Core/Dxe/Event/Timer.c +++ b/MdeModulePkg/Core/Dxe/Event/Timer.c @@ -1,7 +1,7 @@ /** @file Core Timer Services -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -281,6 +281,9 @@ CoreSetTimer ( if (Type != TimerCancel) { if (Type == TimerPeriodic) { + if (TriggerTime == 0) { + gTimer->GetTimerPeriod (gTimer, &TriggerTime); + } Event->Timer.Period = TriggerTime; }