Revision: 14811 http://sourceforge.net/p/edk2/code/14811 Author: li-elvin Date: 2013-10-29 06:47:47 +0000 (Tue, 29 Oct 2013) Log Message: ----------- Fix the bug that SetTimer () cannot work when Type is TimerPeriodic and TriggerTime is 0.
Signed-off-by: Elvin Li <elvin...@intel.com> Reviewed-by: Liming Gao <liming....@intel.com> Modified Paths: -------------- trunk/edk2/MdeModulePkg/Core/Dxe/Event/Timer.c Modified: trunk/edk2/MdeModulePkg/Core/Dxe/Event/Timer.c =================================================================== --- trunk/edk2/MdeModulePkg/Core/Dxe/Event/Timer.c 2013-10-29 06:36:34 UTC (rev 14810) +++ trunk/edk2/MdeModulePkg/Core/Dxe/Event/Timer.c 2013-10-29 06:47:47 UTC (rev 14811) @@ -1,7 +1,7 @@ /** @file Core Timer Services -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> 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 @@ if (Type != TimerCancel) { if (Type == TimerPeriodic) { + if (TriggerTime == 0) { + gTimer->GetTimerPeriod (gTimer, &TriggerTime); + } Event->Timer.Period = TriggerTime; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits