Re: Wait queue problem

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

 



I guess that you are missing one more condition the flag bit which you need
to set and reset accordingly in the function and in the interrupt handler 

interruptible_sleep_on_timeout(&wq,flag!=0,10*HZ);

Try out this for any query please let me know 

regard 
misbah



Andre.Messerschmidt wrote:
> 
> Hi,
> 
> Does anybody else have problems using wait queues in a 2.4.5 MIPS kernel?
> When I try to wake up a process from an interrupt it won't start to
> execute.
> It always waits for the timeout before resuming work. 
> In principal my code look like this:
> 
> wait_queue_head_t wq;
> 
> foo() {
> init_waitqueue_head(&wq);
> interruptible_sleep_on_timeout(&wq,10*HZ);
> }
> 
> foo_int() {
> wake_up_interuptible(&wq);
> }
> 
> Am I missing something? 
> 
> best regards
> --
> Andre Messerschmidt
> 
> Application Engineer
> Infineon Technologies AG
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wait-queue-problem-tf2852319.html#a11707153
Sent from the linux-mips main mailing list archive at Nabble.com.



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux