On Mon, Sep 22, 2003 at 14:44:38 +0530, S kris wrote: > 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 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 finish, but expect to only get HZ precision timing. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/