summaryrefslogtreecommitdiff
path: root/PerformancePkg
diff options
context:
space:
mode:
Diffstat (limited to 'PerformancePkg')
-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 77bc04e08..c49f78664 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 ();
}