]> git.baikalelectronics.ru Git - kernel.git/commit
PM / hibernate: Move software_resume to late_initcall_sync
authorRuss Dill <Russ.Dill@ti.com>
Thu, 24 Oct 2013 13:25:26 +0000 (14:25 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Oct 2013 23:58:49 +0000 (01:58 +0200)
commit15a97529f69c9c5b80fe5e4d25c41dddb45a7f89
tree2019ec28ac1b3284a34d9d8ecea05498e8c1eb10
parentaa6e60d1e173c25e51adc1a357270c09d3437e3a
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: Russ Dill <Russ.Dill@ti.com>
Acked-by: Pavel Machek <Pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c