15extern GUID mFrequencyHobGuid;
50 UINT64 *PerformanceCounterFrequency;
53 PerformanceCounterFrequency =
NULL;
55 if (GuidHob ==
NULL) {
56 PerformanceCounterFrequency = (UINT64 *)
BuildGuidHob (&mFrequencyHobGuid,
sizeof (*PerformanceCounterFrequency));
57 ASSERT (PerformanceCounterFrequency !=
NULL);
60 PerformanceCounterFrequency = (UINT64 *)GET_GUID_HOB_DATA (GuidHob);
63 return *PerformanceCounterFrequency;
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
VOID *EFIAPI BuildGuidHob(IN CONST EFI_GUID *Guid, IN UINTN DataLength)
UINT64 InternalCalculateTscFrequency(VOID)
UINT64 InternalGetPerformanceCounterFrequency(VOID)