Clockevent/clocksource.
Hi,
I would like to implement the (I-pipe) AT91 timer management as clocksource/clockevent, however, I have a question, how does one choose the "shift" value in struct clocksource and struct clock_event_device ?
TIAç
Signature · 1 line
Gilles Chanteperdrix.
Quoted 6 lines · Gilles Chanteperdrix
Hi,
I would like to implement the (I-pipe) AT91 timer management as clocksource/clockevent, however, I have a question, how does one choose the "shift" value in struct clocksource and struct
clock_event_device?
http://ixlabs.cs.pub.ro/category/projects/linux-kernel-library/
Quoted 2 lines
TIAç
Signature · 1 line
Philippe.
Quoted 9 lines · Philippe Gerum
Quoted 6 lines · Gilles Chanteperdrix
Hi,
I would like to implement the (I-pipe) AT91 timer management as clocksource/clockevent, however, I have a question, how does one choose the "shift" value in struct clocksource and struct
clock_event_device?http://ixlabs.cs.pub.ro/category/projects/linux-kernel-library/
Looks like the thing is working. A concern though: the hardware timer used on AT91 wraps fast, so if we want the tsc to work correctly, the timer needs to tick every 20ms (which makes using the clock events framework pretty useless, but it is mostly useful for other reasons: it allows me to test Xenomai on ARM in the clock events case). I have set the clock event max_delta_ns member to these 20ms, however when inserting the nucleus module, the max_delta_ns member is set to ULONG_MAX, so my question is: will the nucleus take care of ticking every 20ms ?
Signature · 1 line
Gilles Chanteperdrix.
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Philippe Gerum
Quoted 6 lines · Gilles Chanteperdrix
Hi,
I would like to implement the (I-pipe) AT91 timer management as clocksource/clockevent, however, I have a question, how does one choose the "shift" value in struct clocksource and struct
clock_event_device?http://ixlabs.cs.pub.ro/category/projects/linux-kernel-library/
Quoted 9 lines
Looks like the thing is working. A concern though: the hardware timer used on AT91 wraps fast, so if we want the tsc to work correctly, the timer needs to tick every 20ms (which makes using the clock events framework pretty useless, but it is mostly useful for other reasons: it allows me to test Xenomai on ARM in the clock events case). I have set the clock event
max_delta_nsmember to these 20ms, however when inserting the nucleus module, themax_delta_nsmember is set toULONG_MAX, so my question is: will the nucleus take care of ticking every 20ms ?
Ok. This is now how max_delta_ns is supposed to be used anyway: enabling NO_HZ breaks the tsc, even if max_delta_ns is not set to ULONG_MAX.
Signature · 1 line
Gilles Chanteperdrix.