Skip to content

Commit

Permalink
[PATCH] swsusp: disable nonboot CPUs before entering platform suspend
Browse files Browse the repository at this point in the history
Prevent the WARN_ON() in arch/x86_64/kernel/acpi/sleep.c:init_low_mapping()
from triggering by disabling nonboot CPUs before we finally enter the
platform suspend.

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]>
  • Loading branch information
rjwysocki authored and Linus Torvalds committed Mar 17, 2007
1 parent 886c595 commit 9498513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions kernel/power/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ static inline int platform_prepare(void)

static void power_down(suspend_disk_method_t mode)
{
disable_nonboot_cpus();
switch(mode) {
case PM_DISK_PLATFORM:
if (pm_ops && pm_ops->enter) {
Expand Down
3 changes: 2 additions & 1 deletion kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp,

case PMOPS_ENTER:
if (data->platform_suspend) {
disable_nonboot_cpus();
kernel_shutdown_prepare(SYSTEM_SUSPEND_DISK);
error = pm_ops->enter(PM_SUSPEND_DISK);
error = 0;
enable_nonboot_cpus();
}
break;

Expand Down

0 comments on commit 9498513

Please sign in to comment.