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

Re: [rtl] jiffies and udelay in rtl



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...