Correction...I'm using 2.4-ts11
On 01/26/2010 11:19 AM, Robert Ulbrich wrote:
> Howdy all!
>
> I'm wondering if anyone else has implemented the MONOTONIC_CLOCK clock
> source in the 2.4 kernel. I'm running the 2.4.21-ts kernel on a 7260
> board. It seems that this clock source is available (in the headers)
> but it doesn't work. The main reason for using the MONOTONIC clock is
> because it is not affected by changes in the time by things like NTP
> (I'm okay with the frequency changes that could be made by adjtimex).
>
> All this is because I have a bit of code that schedules a recurring
> event. The code wakes up every so often (10ms) and checks if it is
> time to schedule an event by comparing the last time scheduled to the
> current time. I know that I could create a timer and receive a signal
> back from the OS, but this interface is also dependent on the clock
> source. Not to mention the signal handling in the pthreads
> implementation (linuxthreads) in 2.4 has known issues.
>
> How would one go about implementing the MONOTONIC_CLOCK in 2.4?
> Anybody have another solution?
>
> Thanks,
> Robert
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|