Merge branch 'pm-sleep'

* pm-sleep:
  PM / Sleep: call early resume handlers when suspend_noirq fails
This commit is contained in:
Rafael J. Wysocki 2012-07-19 10:39:21 +02:00
commit 382e159619
1 changed files with 9 additions and 1 deletions

View File

@ -991,8 +991,16 @@ static int dpm_suspend_late(pm_message_t state)
int dpm_suspend_end(pm_message_t state)
{
int error = dpm_suspend_late(state);
if (error)
return error;
return error ? : dpm_suspend_noirq(state);
error = dpm_suspend_noirq(state);
if (error) {
dpm_resume_early(state);
return error;
}
return 0;
}
EXPORT_SYMBOL_GPL(dpm_suspend_end);