Re: wait_event_interruptible and wake_up_interruptible error

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

 



Hi,

Le Wed, 24 Oct 2007 16:48:54 +0800,
tanbiao <tanbiao@xxxxxxxxxxxxx> a écrit :

> I want to use  wait_event_interruptible and wake_up_interruptible to
> do some jobs,but some error ouccor when  wake_up_interruptible.
> Attach is the code.please help me.
> 
> The errors messages as follow:
> 
> irq7: nobody
> cared                                                             

Your problem doesn't seem to be related to wake_up_interruptible(), but
rather to your IRQ code. The above message means that an IRQ 7 occured,
but nobody took care of it.

Your ir_in_irq() function and its use of the "handled" variable looks a
bit suspicious to me.

Extract of Linux Device Drivers, chapter 10, page 272 :

« You can also generate the return value with this macro:
IRQ_RETVAL(handled) where handled is nonzero if you were able to handle
the interrupt. »

In your case, "handled" is always zero, so the Linux IRQ subsystem
always thinks that you didn't take care of the interrupt.

Sincerly,

Thomas
-- 
Thomas Petazzoni - thomas.petazzoni@xxxxxxxx
http://{thomas,sos,kos}.enix.org - http://www.toulibre.org
http://www.{livret,agenda}dulibre.org

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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