ts-7000
[Top] [All Lists]

[ts-7000] Re: monotonic clock in 2.4 kernel

To:
Subject: [ts-7000] Re: monotonic clock in 2.4 kernel
From: Robert Ulbrich <>
Date: Tue, 26 Jan 2010 11:55:15 -0600
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU