Re: interrupt question

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

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux