Re: [linux-pm] wait_for_completion_interruptible does not wait !!

2010-06-28 Thread Mark Brown
On Sat, Jun 19, 2010 at 11:52:10PM -0700, Suresh Rajashekara wrote: I have an application which calls the ioctl of the codec driver to know the status of the headset. The ioctl waits on a completion variable (using wait_for_completion_interruptible). There is standard support for headset

Re: [linux-pm] wait_for_completion_interruptible does not wait !!

2010-06-26 Thread Suresh Rajashekara
On Sun, Jun 20, 2010 at 8:52 AM, Alan Stern st...@rowland.harvard.edu wrote: What happens if the variable is completed while nobody is waiting for it?  The next time somebody tries to wait, won't the wait terminate immediately? Haven't tested it but will reply with the answer once I get a

Re: [linux-pm] wait_for_completion_interruptible does not wait !!

2010-06-20 Thread Alan Stern
On Sat, 19 Jun 2010, Suresh Rajashekara wrote: I have an application which calls the ioctl of the codec driver to know the status of the headset. The ioctl waits on a completion variable (using wait_for_completion_interruptible). The variable is completed in the interrupt handler, which