Determining the APIC timer frequency using CPUID only

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mrjbom
Member
Member
Posts: 317
Joined: Sun Jul 21, 2019 7:34 am

Determining the APIC timer frequency using CPUID only

Post by mrjbom »

Since “APIC timer's frequency is equal to the bus' frequency OR the core crystal's frequency divided by the chosen frequency divider”, is it possible to get bus frequency or core crystal frequency using cpuid 0x15 and 0x16 to calculate APIC Timer's frequency and not use the PIT method described on Wiki? Is it possible? How well will it work?
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Determining the APIC timer frequency using CPUID only

Post by Octocontrabass »

mrjbom wrote: Wed Dec 11, 2024 9:47 amis it possible to get bus frequency or core crystal frequency using cpuid 0x15 and 0x16 to calculate APIC Timer's frequency and not use the PIT method described on Wiki?
Yes, if the CPU supports those CPUID leaves.
mrjbom wrote: Wed Dec 11, 2024 9:47 amHow well will it work?
It's better than using the PIT to measure the APIC timer frequency.
Post Reply