summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuDxe/CpuDxe.h
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2017-02-20 16:17:05 +0800
committerJeff Fan <jeff.fan@intel.com>2017-02-22 15:04:06 +0800
commit7537f8c09a63961c5ffb6f584a6bf8210bb2c339 (patch)
treebcd1685708961fbfe884e69cb3e051a6886e6749 /UefiCpuPkg/CpuDxe/CpuDxe.h
parent14f92ded906d22274730a92f7801f0ffd84e6193 (diff)
downloadedk2-7537f8c09a63961c5ffb6f584a6bf8210bb2c339.tar.gz
edk2-7537f8c09a63961c5ffb6f584a6bf8210bb2c339.tar.bz2
edk2-7537f8c09a63961c5ffb6f584a6bf8210bb2c339.zip
UefiCpuPkg/CpuDxe: Fix hard code actual TimerPeriod value
Current CpuGetTimerValue() implementation return hard code TimerPeriod value. We could calculate the actual TimerPeriod value over period of time (100us) at the first time invoking CpuGetTimerValue() and save the TimerPeriod value into one global variable to avoid delay at the next CpuGetTimerValue() invoking. https://bugzilla.tianocore.org/show_bug.cgi?id=382 Cc: Feng Tian <feng.tian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@Intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuDxe.h')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuDxe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h
index 6dd0ad3f01..27ad45bf9b 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.h
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.h
@@ -1,7 +1,7 @@
/** @file
CPU DXE Module to produce CPU ARCH Protocol and CPU MP Protocol.
- Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2008 - 2017, 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
@@ -39,6 +39,7 @@
#include <Library/HobLib.h>
#include <Library/ReportStatusCodeLib.h>
#include <Library/MpInitLib.h>
+#include <Library/TimerLib.h>
#include <Guid/IdleLoopEvent.h>
#include <Guid/VectorHandoffTable.h>