mirror of https://gitee.com/openkylin/linux.git
Merge branch 'pm-sleep'
* pm-sleep: PM / Sleep: call early resume handlers when suspend_noirq fails
This commit is contained in:
commit
382e159619
|
@ -991,8 +991,16 @@ static int dpm_suspend_late(pm_message_t state)
|
||||||
int dpm_suspend_end(pm_message_t state)
|
int dpm_suspend_end(pm_message_t state)
|
||||||
{
|
{
|
||||||
int error = dpm_suspend_late(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);
|
EXPORT_SYMBOL_GPL(dpm_suspend_end);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue