From da27b950d58f94725c1164e34fb696c1cef4f29a Mon Sep 17 00:00:00 2001 From: lzeng14 Date: Mon, 31 Oct 2011 06:37:51 +0000 Subject: 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 --- PerformancePkg/Library/TscTimerLib/BaseTscTimerLib.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'PerformancePkg/Library/TscTimerLib') 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 (); } -- cgit v1.2.3