Does the APIC Timer frequency change with the CPU frequency?

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

Does the APIC Timer frequency change with the CPU frequency?

Post by mrjbom »

As I understand it, a processor can change its frequency during operation depending on load, temperature, and other factors. Does changing the frequency at which it is currently running affect the frequency used by APIC Timer or is it constant?
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Does the APIC Timer frequency change with the CPU frequency?

Post by Octocontrabass »

The APIC timer frequency doesn't change when the CPU frequency changes, but it might stop when the CPU is stopped. You can check CPUID (leaf 6 EAX bit 2, ARAT).
User avatar
mrjbom
Member
Member
Posts: 317
Joined: Sun Jul 21, 2019 7:34 am

Re: Does the APIC Timer frequency change with the CPU frequency?

Post by mrjbom »

Octocontrabass wrote: Wed Dec 11, 2024 9:31 pm The APIC timer frequency doesn't change when the CPU frequency changes
And can the timer frequency be different on other cores or do all cores have the same timer frequency?
rdos
Member
Member
Posts: 3297
Joined: Wed Oct 01, 2008 1:55 pm

Re: Does the APIC Timer frequency change with the CPU frequency?

Post by rdos »

mrjbom wrote: Thu Dec 12, 2024 6:02 am
Octocontrabass wrote: Wed Dec 11, 2024 9:31 pm The APIC timer frequency doesn't change when the CPU frequency changes
And can the timer frequency be different on other cores or do all cores have the same timer frequency?
On the same CPU chip, they will likely have the same frequency, but when using multiple CPUs, then maybe not.

I think some early APIC designs did have issues with frequency dependency when using power-management and different frequencies, but they solved this so it should no longer be an issue.
Post Reply