Re: [edk2-devel] Determining TSC frequency programmatically

2019-08-16 Thread Vitaly Cheptsov via Groups.Io
Andrew, Thanks for the reminder for CpuDxe. I think we saw CpuDxe calculation some time ago, and it was most likely a reason we went with a very similar approach to determine the TSC frequency as a fallback mechanism. It, however, is in fact prone to issues, putting aside the non-guaranteed pe

Re: [edk2-devel] Determining TSC frequency programmatically

2019-08-16 Thread Andrew Fish via Groups.Io
Vitaly, As Mike mentioned platforms can know more info about how they are constructed thus you may not want to have a lot of generic discovery code floating about if you don't really need it. One option could be to pass up the TSC Frequency/Period via some EFI mechanism so generic code can be