OK I found the answer. I should use a work_queue for my BH tasklet and a timer. On Tue, 1 Mar 2005 16:09:19 +0200, Octavian Purdila <tavi@xxxxxxxxx> wrote: > On Tuesday 01 March 2005 03:57 pm, Bahadir Balban wrote: > > Hi, > > > > I have a simple interface that generates an interrupt but updates the > > data register after approximately 70 ms. > > > > My question is, would it be reasonable to sleep for a short while in > > the bottom half of the handler before querying the data? My argument > > is that since the BH is interruptable it wouldnt do harm if I slept? > > > > You can't sleep in interrupt/bh context. Try it and you will get an oops. For > you particular problem, use a timer. > > tavi > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/