diff options
author | David Brownell <david-b@pacbell.net> | 2006-08-15 02:11:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:37 -0400 |
commit | f1cc0a894c963923b766eb2d455747495e6e982d (patch) | |
tree | cccd3a2c337f0117d664e204eedf5c222a6c43f7 /kernel/power/user.c | |
parent | 185849991d592497e43bcd264c6152af1261ffe2 (diff) |
PM: issue PM_EVENT_PRETHAW
This patch is the first of this series that should actually change any
behavior ... by issuing the new event, now tha the rest of the kernel is
prepared to receive it.
This converts the PM core to issue the new PRETHAW message, which the rest of
the kernel is now ready to receive.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/power/user.c')
-rw-r--r-- | kernel/power/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c index 3f1539fbe48a..5a8d060d7909 100644 --- a/kernel/power/user.c +++ b/kernel/power/user.c | |||
@@ -191,7 +191,7 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp, | |||
191 | } | 191 | } |
192 | down(&pm_sem); | 192 | down(&pm_sem); |
193 | pm_prepare_console(); | 193 | pm_prepare_console(); |
194 | error = device_suspend(PMSG_FREEZE); | 194 | error = device_suspend(PMSG_PRETHAW); |
195 | if (!error) { | 195 | if (!error) { |
196 | error = swsusp_resume(); | 196 | error = swsusp_resume(); |
197 | device_resume(); | 197 | device_resume(); |