Skip to content

Commit

Permalink
patch from EDK2 commit df2ec2a
Browse files Browse the repository at this point in the history
Signed-off-by: Slice <sergey.slice@gmail.com>
  • Loading branch information
SergeySlice committed Jan 10, 2024
1 parent d271034 commit 1947d48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OpenCorePkg
8 changes: 4 additions & 4 deletions PcAtChipsetPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -66,7 +66,7 @@ InternalGetPerformanceCounterFrequency (
VOID
)
{
return mPerformanceCounterFrequency;
return mAcpiTimerLibTscFrequency;
}

/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1947d48

Please sign in to comment.