linux-mips
[Top] [All Lists]

Wait queue problem

To: linux-mips@oss.sgi.com
Subject: Wait queue problem
From: Andre.Messerschmidt@infineon.com
Date: Wed, 17 Apr 2002 12:03:19 +0200
Sender: owner-linux-mips@oss.sgi.com
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


<Prev in Thread] Current Thread [Next in Thread>