]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Fix PM_POST_* notification with user-space suspend
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Dec 2010 23:16:39 +0000 (00:16 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:16:09 +0000 (16:16 -0400)
commite3dc1fabddcbc9a4d3fabb74671d521e68da2206
tree66f9daea3fd7ace3ff25404a28dfcfe27de36001
parent430ed48fcb365a7cc37da414c284930f217a609b
PM / Hibernate: Fix PM_POST_* notification with user-space suspend

commit 1497dd1d29c6a53fcd3c80f7ac8d0e0239e7389e upstream.

The user-space hibernation sends a wrong notification after the image
restoration because of thinko for the file flag check.  RDONLY
corresponds to hibernation and WRONLY to restoration, confusingly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/power/user.c