Skip to content

Commit

Permalink
PM / Sleep: use resume event when call dpm_resume_early
Browse files Browse the repository at this point in the history
When dpm_suspend_noirq fail, state is PMSG_SUSPEND,
should change to PMSG_RESUME when dpm_resume_early is called

Signed-off-by: Feng Hong <hongfeng@marvell.com>
Signed-off-by: Raul Xiong <xjian@marvell.com>
Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Cc: stable@vger.kernel.org
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Feng Hong authored and Rafael J. Wysocki committed Sep 19, 2012
1 parent bbdc18a commit 997a031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ int dpm_suspend_end(pm_message_t state)

error = dpm_suspend_noirq(state);
if (error) {
dpm_resume_early(state);
dpm_resume_early(resume_event(state));
return error;
}

Expand Down

0 comments on commit 997a031

Please sign in to comment.