summaryrefslogtreecommitdiff
path: root/PcAtChipsetPkg/8254TimerDxe/Timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'PcAtChipsetPkg/8254TimerDxe/Timer.c')
-rw-r--r--PcAtChipsetPkg/8254TimerDxe/Timer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/PcAtChipsetPkg/8254TimerDxe/Timer.c b/PcAtChipsetPkg/8254TimerDxe/Timer.c
index da7d6af578..a7f4947002 100644
--- a/PcAtChipsetPkg/8254TimerDxe/Timer.c
+++ b/PcAtChipsetPkg/8254TimerDxe/Timer.c
@@ -1,7 +1,7 @@
/** @file
Timer Architectural Protocol as defined in the DXE CIS
-Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2012, 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
@@ -219,9 +219,7 @@ TimerDriverSetTimerPeriod (
//
if (TimerCount >= 65536) {
TimerCount = 0;
- if (TimerPeriod >= DEFAULT_TIMER_TICK_DURATION) {
- TimerPeriod = DEFAULT_TIMER_TICK_DURATION;
- }
+ TimerPeriod = MAX_TIMER_TICK_DURATION;
}
//
// Program the 8254 timer with the new count value