[rtl] jiffies and udelay in rtl

2000-03-02 Thread Alain Rolle

Hi there,

I'm implementing a RT driver (RTL2.0 ,Kernel 2.2.13) and I'm not sure that
I can use "jiffies" in it (I'm using these for detecting time outs).
Should I not use some rtl specific call to do that?  Same question
concerning the linux "udelay" call. Can someone help me on this topic ?

Thanks in advance,

Alain Rolle
Dept. of Information Technology at the university of Ghent, Belgium.

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/



Re: [rtl] jiffies and udelay in rtl

2000-03-02 Thread David Schleef

On Thu, Mar 02, 2000 at 09:02:27AM +0100, Alain Rolle wrote:
 Hi there,
 
 I'm implementing a RT driver (RTL2.0 ,Kernel 2.2.13) and I'm not sure that
 I can use "jiffies" in it (I'm using these for detecting time outs).
 Should I not use some rtl specific call to do that?  Same question
 concerning the linux "udelay" call. Can someone help me on this topic ?
 

You may use jiffies, but remember that it will never be updated while
you are running real-time code.  (Because interrupts are disabled.)

udelay() is completely real-time compatible.  (Possibly untrue for 2.2.15pre10.)



dave...


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/