mirror of https://github.com/acidanthera/audk.git
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:
parent
b2e444aaf7
commit
da27b950d5
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue