[edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Remove PEI/DXE instances of CpuTimerLib.

Jason Lou yun.lou at intel.com
Thu Apr 1 08:41:41 UTC 2021


1. Since the time it takes to find specified GUID Extension Hob (CpuCrystalFrequencyHob: about 2000ns)
is much longer than it takes to calculate TSC frequency with CPUID (about 450ns), I recommend using
BaseCpuTimerLib instead of PeiCpuTimerLib.

2. The time it takes to get TSC frequency from global variable is shorter than it takes to calculate TSC
frequency with CPUID, but 450ns is really a short time, the impact on the platform is very limited.
In addition, in order to simplify the code, recommend using BaseCpuTimerLib instead of DxeCpuTimerLib.

If anyone has questions or concerns, please feel free to let me know. If not, I will submit code patch later,
thanks.

Jason Lou


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#73604): https://edk2.groups.io/g/devel/message/73604
Mute This Topic: https://groups.io/mt/77073830/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210401/4ed13dc8/attachment.htm>


More information about the edk2-devel-archive mailing list