Re: [LAD] Timers, hpet, hrtimer

From: <fons@email-addr-hidden>
Date: Tue Nov 10 2009 - 20:33:45 EET

On Tue, Nov 10, 2009 at 01:16:52PM -0500, Paul Davis wrote:

> On Tue, Nov 10, 2009 at 1:06 PM, <fons@email-addr-hidden> wrote:
> > On Tue, Nov 10, 2009 at 07:53:19PM +0200, Jussi Laako wrote:
> >
> >> Brokenness is that JACK is not interested on those sub-timers and the
> >> driver should allocate those only via corresponding ioctl() and give
> >> unlimited read access to the global timer value without failing early...
> >
> > If hpet services are available via the kernel (I assume in the
> > form of fine-grained sleep, usleep, timetouts, etc.) why should
> > Jack (or any app) use the HW timer directly ?
>
> because we don't want to have to make a system call to get a high res
> timer value.
> JACK was written with the assumption that doing this is essentially free.

So you're just reading it, not waiting on it ? That indeed
should be 'free'.

What I don't see is how e.g. MIDI generators can use it
in this way to get accurate event timing. Either they are
spinning (evil), or they'd need a system call anyway, and
it that case they should use kernel services instead.

Ciao,

-- 
FA
Io lo dico sempre: l'Italia è troppo stretta e lunga.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Wed Nov 11 00:15:01 2009

This archive was generated by hypermail 2.1.8 : Wed Nov 11 2009 - 00:15:02 EET