Wait queue question

Roland Dreier roland at topspincom.com
Thu Feb 15 04:30:18 EST 2001

    Ralph> If I have a wait queue thats I am using to wake up a device
    Ralph> driver read from an interrupt service routine.  If I get
    Ralph> three interrupt and three wake_up_interrables, will I need
    Ralph> to execute three sleep_ons to get the wait queue back to
    Ralph> the null state, or is it just back after the first
    Ralph> sleep_on?

You really don't want to use sleep_on() any more (Linux wants to
remove it out for 2.5).  Take a look at


for a safer way to sleep, or use the wait_event macro (in


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-embedded mailing list