From: MyungJoo Ham Date: Fri, 26 Nov 2010 22:07:56 +0000 (+0100) Subject: PM / Hibernate: When failed, in_suspend should be reset X-Git-Tag: v2.6.38-rc1~443^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5262a47502adcfc3a64403120768f528418a3b79;p=pandora-kernel.git PM / Hibernate: When failed, in_suspend should be reset 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 Signed-off-by: Kyungmin Park Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed