PM / Hibernate: Thaw kernel threads in hibernation_snapshot() in error/test path
commit51d6ff7acd920379f54d0be4dbe844a46178a65f
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Sat, 4 Feb 2012 21:26:38 +0000 (4 22:26 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 9 Feb 2012 22:55:54 +0000 (9 23:55 +0100)
treeb016233eaf9dd4f1698ca6e8e649d1df905a48ec
parent9045a05044268b075c13bb0284601b24959dc3c6
PM / Hibernate: Thaw kernel threads in hibernation_snapshot() in error/test path

In the hibernation call path, the kernel threads are frozen inside
hibernation_snapshot(). If we happen to encounter an error further down
the road or if we are exiting early due to a successful freezer test,
then thaw kernel threads before returning to the caller.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/hibernate.c
kernel/power/user.c