提交 d3c345db 编写于 作者: R Russ Dill 提交者: Rafael J. Wysocki

PM / hibernate: Move software_resume to late_initcall_sync

software_resume is being called after deferred_probe_initcall in
drivers base. If the probing of the device that contains the resume
image is deferred, and the system has been instructed to wait for
it to show up, this wait will occur in software_resume. This causes
a deadlock.

Move software_resume into late_initcall_sync so that it happens
after all the other late_initcalls.
Signed-off-by: NRuss Dill <Russ.Dill@ti.com>
Acked-by: NPavel Machek <Pavel@ucw.cz>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 7244cb62
...@@ -846,7 +846,7 @@ static int software_resume(void) ...@@ -846,7 +846,7 @@ static int software_resume(void)
goto Finish; goto Finish;
} }
late_initcall(software_resume); late_initcall_sync(software_resume);
static const char * const hibernation_modes[] = { static const char * const hibernation_modes[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册