patch from EDK2 commit df2ec2a

Signed-off-by: Slice <sergey.slice@gmail.com>
This commit is contained in:
Slice 2024-01-10 20:48:50 +03:00
parent d27103447c
commit 1947d48706
2 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 8270a6fb81b95abf957d2b7acd945fcc039ffde6
Subproject commit 0fcc050a44f6fa06788b349e65b4e10fcdabde67

View File

@ -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;