Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7372cdf authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Linus Torvalds
Browse files

ACPI: Do not prepare for hibernation in acpi_shutdown



Since we are now explicitly calling hibernation_ops->prepare() before
hibernation_ops->enter() in hibernation_platform_enter() (defined in
kernel/power/disk.c), ACPI should not call acpi_sleep_prepare(ACPI_STATE_S4)
from acpi_shutdown().

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6c961dfb
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -54,9 +54,6 @@ static int acpi_shutdown(struct sys_device *x)
	case SYSTEM_POWER_OFF:
	case SYSTEM_POWER_OFF:
		/* Prepare to power off the system */
		/* Prepare to power off the system */
		return acpi_sleep_prepare(ACPI_STATE_S5);
		return acpi_sleep_prepare(ACPI_STATE_S5);
	case SYSTEM_SUSPEND_DISK:
		/* Prepare to suspend the system to disk */
		return acpi_sleep_prepare(ACPI_STATE_S4);
	default:
	default:
		return 0;
		return 0;
	}
	}