PM / Hibernate: Refactor and simplify freezer_test_done
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Sat, 4 Feb 2012 22:39:56 +0000 (23:39 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 9 Feb 2012 22:56:01 +0000 (23:56 +0100)
commita556d5b58345ccf51826b9ceac078072f830738b
tree35b66f1c49cf6f5437811051965f45a14f1ee15f
parent51d6ff7acd920379f54d0be4dbe844a46178a65f
PM / Hibernate: Refactor and simplify freezer_test_done

The code related to 'freezer_test_done' is needlessly convoluted.
Refactor the code and simplify the implementation.

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
kernel/power/user.c