]> Pileus Git - ~andy/linux/blobdiff - drivers/char/apm-emulation.c
Merge remote-tracking branch 'asoc/topic/tlv320aic26' into asoc-next
[~andy/linux] / drivers / char / apm-emulation.c
index 57501ca9204b017abce7b6a8f160a8e74769544e..46118f8459484a35c3a709c12a28512fd56820af 100644 (file)
@@ -301,7 +301,7 @@ apm_ioctl(struct file *filp, u_int cmd, u_long arg)
                         * anything critical, chill a bit on each iteration.
                         */
                        while (wait_event_freezable(apm_suspend_waitqueue,
-                                       as->suspend_state == SUSPEND_DONE))
+                                       as->suspend_state != SUSPEND_ACKED))
                                msleep(10);
                        break;
                case SUSPEND_ACKTO: