]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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)
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

index c9c759d5a15cbd53831bdf7552dc455a64a40b5b..0121dab83f43d82ddfb620f7423d6c9728f8b01b 100644 (file)
@@ -846,7 +846,7 @@ static int software_resume(void)
        goto Finish;
 }
 
-late_initcall(software_resume);
+late_initcall_sync(software_resume);
 
 
 static const char * const hibernation_modes[] = {