5262a47502
When hibernation failed due to an error in swsusp_write() called by hibernate(), it skips calling "power_down()" and returns. When hibernate() is called again (probably after fixing up so that swsusp_write() wouldn't fail again), before "in_suspend = 1" of create_image is called, in_suspend should be 0. However, because hibernate() did not reset "in_suspend" after a failure, it's already 1. This patch fixes such inconsistency of "in_suspend" value. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> |
||
---|---|---|
.. | ||
block_io.c | ||
console.c | ||
hibernate.c | ||
Kconfig | ||
main.c | ||
Makefile | ||
nvs.c | ||
power.h | ||
poweroff.c | ||
process.c | ||
snapshot.c | ||
suspend_test.c | ||
suspend.c | ||
swap.c | ||
user.c |