]> 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)
commit7e364b2741f09f9d823facfa39d389de157f8bc5
treeb917fb563df2d27b95d6012afd9bf63237a7e3d5
parent210f9e9ebe2d373aa17b1088913b0961a0a968be
PM / Hibernate: Fix the early termination of test modes

Commit dced13e54a51a23f152f427880ded4176773da7a
(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