PM / Hibernate: Fix the early termination of test modes
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Fri, 18 Nov 2011 22:02:42 +0000 (23:02 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 18 Nov 2011 22:02:42 +0000 (23:02 +0100)
commitaa9a7b11821e883a7b93ecce190881e0ea48648b
treeb917fb563df2d27b95d6012afd9bf63237a7e3d5
parent88995e809f8a8115f30db24696c9137aad93d570
PM / Hibernate: Fix the early termination of test modes

Commit 2aede851ddf08666f68ffc17be446420e9d2a056
(PM / Hibernate: Freeze kernel threads after preallocating memory)
postponed the freezing of kernel threads to after preallocating memory
for hibernation. But while doing that, the hibernation test TEST_FREEZER
and the test mode HIBERNATION_TESTPROC were not moved accordingly.

As a result, when using these test modes, it only goes upto the freezing of
userspace and exits, when in fact it should go till the complete end of task
freezing stage, namely the freezing of kernel threads as well.

So, move these points of exit to appropriate places so that freezing of
kernel threads is also tested while using these test harnesses.

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