projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf11fa
)
[PATCH] swsusp: Fix SNAPSHOT_S2RAM ioctl
author
Rafael J. Wysocki
<
[email protected]
>
Thu, 22 Mar 2007 08:11:20 +0000
(
00:11
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 23 Mar 2007 02:39:05 +0000
(19:39 -0700)
The SNAPSHOT_S2RAM ioctl does not disable the nonboot CPUs before entering
the suspend, although it should do this.
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
Acked-by: Pavel Machek <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/power/user.c
patch
|
blob
|
history
diff --git
a/kernel/power/user.c
b/kernel/power/user.c
index d6a8dcc26ae552d94f38d456b38a5ce1821e4071..bf211fee122279b98598692e8f076522e314ccfd 100644
(file)
--- a/
kernel/power/user.c
+++ b/
kernel/power/user.c
@@
-368,9
+368,12
@@
static int snapshot_ioctl(struct inode *inode, struct file *filp,
if (error) {
printk(KERN_ERR "Failed to suspend some devices.\n");
} else {
- /* Enter S3, system is already frozen */
- suspend_enter(PM_SUSPEND_MEM);
-
+ error = disable_nonboot_cpus();
+ if (!error) {
+ /* Enter S3, system is already frozen */
+ suspend_enter(PM_SUSPEND_MEM);
+ enable_nonboot_cpus();
+ }
/* Wake up devices */
device_resume();
}