]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d97707ce014d46c967ce44474466e763ca00339
treeb917fb563df2d27b95d6012afd9bf63237a7e3d5
parent6b5bab89afc5febf088d6e2568bba7df33bd7a74
PM / Hibernate: Fix the early termination of test modes

Commit 41dfd8add3e12dc1ed1d0c8898c65142356a8f44
(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