Re: Best Kernel Timers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 28 Sep 2005, Simon White wrote:

> Now as an alternative it is again desired that a version (although
> wont perfectly work) be available to a vanilla 2.6 kernel (possibly
> 2.4) with similiar limitations as before.  Its a shame the posix
> calls appear to not be supported in kernel for drivers so I have
> wrapped the calls for semaphores/mutexs/threads to kernel
> equivalents.

They are supported. See drivers/char/mmtimer.c for an example 
implementation.

> However I have no idea what to do for the timers.  Is there
> something suitable inkernel that would provide an async callback
> to pre-empt a realtime thread and provide better resolution than
> HZ a far amount of the time?  Or do I have to run a seperate lower
> priority busy waiting thread to wakeup the realtime one?

Yes. Provide an implementation for a posix clock like done in the mmtimer 
driver.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux