Skip to contentSkip to conversation

adeos_tune_timer()

Adeos-main Wolfgang Grandegger 2 participants 2 messages Jun 3, 2004 – Jun 4, 2004

lore
Share & tools
lore
#1 lore raw
In reply to Wolfgang Grandegger
Quoted 6 lines · Wolfgang Grandegger

Hello,

the function adeos_tune_timer() allows to change the tick frequency of the hardware timer. I wonder if Linux is aware of this change? Doesn't it still believe that the timer interrupt comes at a rate of 100 Hz?

No, Linux is not aware of that. It's the burden of the domain tuning the timer to also intercept the timer interrupt and propagate one of them down the pipeline at the proper pace (e.g. 1 from 10 if the domain sets the timer for ticking at 10Khz, and Linux expects 1Khz), so that Linux is not affected by the change. Of course, this only works if the timer is tuned by a domain more prioritary than Linux, so such propagation can occur; less prioritary domains should not have to grab the timer anyway.

IIRC, some example code in the tree illustrates this principle for the timer IRQ.

Quoted 6 lines

Wolfgang.

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.
#0 lore raw

Hello,

the function adeos_tune_timer() allows to change the tick frequency of the hardware timer. I wonder if Linux is aware of this change? Doesn't it still believe that the timer interrupt comes at a rate of 100 Hz?

Wolfgang.