mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-02 17:57:43 +01:00
patch from EDK2 commit df2ec2a
Signed-off-by: Slice <sergey.slice@gmail.com>
This commit is contained in:
parent
d27103447c
commit
1947d48706
@ -1 +1 @@
|
||||
Subproject commit 8270a6fb81b95abf957d2b7acd945fcc039ffde6
|
||||
Subproject commit 0fcc050a44f6fa06788b349e65b4e10fcdabde67
|
@ -51,7 +51,7 @@ InternalCalculateTscFrequency (
|
||||
//
|
||||
// Cached performance counter frequency
|
||||
//
|
||||
UINT64 mPerformanceCounterFrequency = 0;
|
||||
static UINT64 mAcpiTimerLibTscFrequency = 0;
|
||||
|
||||
/**
|
||||
Internal function to retrieves the 64-bit frequency in Hz.
|
||||
@ -66,7 +66,7 @@ InternalGetPerformanceCounterFrequency (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
return mPerformanceCounterFrequency;
|
||||
return mAcpiTimerLibTscFrequency;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -97,9 +97,9 @@ DxeAcpiTimerLibConstructor (
|
||||
//
|
||||
GuidHob = GetFirstGuidHob (&mFrequencyHobGuid);
|
||||
if (GuidHob != NULL) {
|
||||
mPerformanceCounterFrequency = *(UINT64*)GET_GUID_HOB_DATA (GuidHob);
|
||||
mAcpiTimerLibTscFrequency = *(UINT64*)GET_GUID_HOB_DATA (GuidHob);
|
||||
} else {
|
||||
mPerformanceCounterFrequency = InternalCalculateTscFrequency ();
|
||||
mAcpiTimerLibTscFrequency = InternalCalculateTscFrequency ();
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user