[PATCH] swsusp: disable nonboot CPUs before entering platform suspend
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 <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
886c595295
commit
94985134b7
@ -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) {
|
||||
|
Reference in New Issue
Block a user