aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-12-17 09:31:59 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-12-17 09:31:59 -0800
commit508817e7cd8cb585148d12b5673202142ece2330 (patch)
tree5041771f203c906afce49d9e75e5e856f77a903f /kernel/power
parent8efc1a1a22e6daf9d669e6095460c77df683c325 (diff)
parentf08f5a0add20834d3f3d876dfe08005a5df656db (diff)
downloadkernel_samsung_smdk4412-508817e7cd8cb585148d12b5673202142ece2330.zip
kernel_samsung_smdk4412-508817e7cd8cb585148d12b5673202142ece2330.tar.gz
kernel_samsung_smdk4412-508817e7cd8cb585148d12b5673202142ece2330.tar.bz2
Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6
* 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6: PM / Runtime: Fix pm_runtime_suspended() PM / Hibernate: Restore old swap signature to avoid user space breakage PM / Hibernate: Fix PM_POST_* notification with user-space suspend
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/swap.c2
-rw-r--r--kernel/power/user.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index baf667b..8c7e483 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -30,7 +30,7 @@
#include "power.h"
-#define HIBERNATE_SIG "LINHIB0001"
+#define HIBERNATE_SIG "S1SUSPEND"
/*
* The swap map is a data structure used for keeping track of each page
diff --git a/kernel/power/user.c b/kernel/power/user.c
index 1b2ea31..c36c3b9 100644
--- a/kernel/power/user.c
+++ b/kernel/power/user.c
@@ -137,7 +137,7 @@ static int snapshot_release(struct inode *inode, struct file *filp)
free_all_swap_pages(data->swap);
if (data->frozen)
thaw_processes();
- pm_notifier_call_chain(data->mode == O_WRONLY ?
+ pm_notifier_call_chain(data->mode == O_RDONLY ?
PM_POST_HIBERNATION : PM_POST_RESTORE);
atomic_inc(&snapshot_device_available);