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
This commit is contained in:
lzeng14 2011-10-31 06:37:51 +00:00
parent b2e444aaf7
commit da27b950d5
1 changed files with 1 additions and 13 deletions

View File

@ -30,8 +30,6 @@
#include "TscTimerLibInternal.h" #include "TscTimerLibInternal.h"
UINT64 mTscFrequency = 0;
/** Get TSC frequency. /** Get TSC frequency.
@return The number of TSC counts per second. @return The number of TSC counts per second.
@ -42,16 +40,6 @@ InternalGetTscFrequency (
VOID VOID
) )
{ {
UINT64 TscFrequency; return InternalCalculateTscFrequency ();
if (mTscFrequency != 0) {
return mTscFrequency;
}
TscFrequency = InternalCalculateTscFrequency ();
mTscFrequency = TscFrequency;
return TscFrequency;
} }