|
@@ -301,7 +301,7 @@ apm_ioctl(struct file *filp, u_int cmd, u_long arg)
|
|
* anything critical, chill a bit on each iteration.
|
|
* anything critical, chill a bit on each iteration.
|
|
*/
|
|
*/
|
|
while (wait_event_freezable(apm_suspend_waitqueue,
|
|
while (wait_event_freezable(apm_suspend_waitqueue,
|
|
- as->suspend_state == SUSPEND_DONE))
|
|
|
|
|
|
+ as->suspend_state != SUSPEND_ACKED))
|
|
msleep(10);
|
|
msleep(10);
|
|
break;
|
|
break;
|
|
case SUSPEND_ACKTO:
|
|
case SUSPEND_ACKTO:
|