On Mon, 2007-04-02 at 10:30 -0700, Davide Libenzi wrote:
Err, the read function
ticks = hrtimer_forward(&ctx->tmr, ktime_get(),
ctx->tintv);
does give you the number of (lost) ticks.
tmr->expires holds the absolute expiry time of the last event.
hrtimer_forward() adds N intervals to tmr->expires, so that the new
tmr->expires value is greater than now (ktime_get()). It returns N.
So the number of lost ticks is N - 1. No time reading and no magic
math :)
tglx
-