summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 06:37:51 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-31 06:37:51 +0000
commitda27b950d58f94725c1164e34fb696c1cef4f29a (patch)
treec1eb07de55a8224829c43c17f42001fd59919e25
parentb2e444aaf7adcf97a52303f6785336ea19312729 (diff)
downloadedk2-platforms-da27b950d58f94725c1164e34fb696c1cef4f29a.tar.xz
Refine BaseTscTimerLib.
Signed-off-by: lzeng14 Reviewed-by: vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12608 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.c b/PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.c
index 77bc04e085..c49f786641 100644
--- a/PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.c
+++ b/PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.c
@@ -30,8 +30,6 @@
#include "TscTimerLibInternal.h"
-UINT64 mTscFrequency = 0;
-
/** Get TSC frequency.
@return The number of TSC counts per second.
@@ -42,16 +40,6 @@ InternalGetTscFrequency (
VOID
)
{
- UINT64 TscFrequency;
-
- if (mTscFrequency != 0) {
- return mTscFrequency;
- }
-
- TscFrequency = InternalCalculateTscFrequency ();
-
- mTscFrequency = TscFrequency;
-
- return TscFrequency;
+ return InternalCalculateTscFrequency ();
}