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

Re: Need Clarifications



> > Hi,
> >
> > I need to poll for some status bit, with timeout, inside tasklet.
> > Can i use the sleep call in a tasklet which runs in interrupt context?
> > Also can i use the timer interrupts in tasklets?
>
>If it's some microseconds, you can use usleep. However expect some
I think usleep will schedule other processes? So how usleep works in 
tasklet?
Also I think it is better to use mdelay and udelay in the tasklets. So what 
is your opinion on this?

>effect on the system performance (depends on how long and how often you
>will sleep). If it's longer, you should schedule another tasklet to

How to schedule another tasklet from the current tasklet?

>finish, but expect to only get HZ precision timing.
>

_________________________________________________________________
Buy now! Receive a gold coin on Dhan Teras. 
http://server1.msn.co.in/features/general/dhanteras/index.asp Celebrate 
prosperity!

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/