From 1947d487061596d0be950e1c5621edd4440d3c0f Mon Sep 17 00:00:00 2001 From: Slice Date: Wed, 10 Jan 2024 20:48:50 +0300 Subject: [PATCH] patch from EDK2 commit df2ec2a Signed-off-by: Slice --- OpenCorePkg | 2 +- PcAtChipsetPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenCorePkg b/OpenCorePkg index 8270a6fb8..0fcc050a4 160000 --- a/OpenCorePkg +++ b/OpenCorePkg @@ -1 +1 @@ -Subproject commit 8270a6fb81b95abf957d2b7acd945fcc039ffde6 +Subproject commit 0fcc050a44f6fa06788b349e65b4e10fcdabde67 diff --git a/PcAtChipsetPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c b/PcAtChipsetPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c index 3ad831b15..50b0c2b46 100644 --- a/PcAtChipsetPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c +++ b/PcAtChipsetPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c @@ -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;