1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../linux/s4-halt.patch.disabled
5 # Copyright (C) 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- linux-4.3/drivers/acpi/sleep.c.orig 2015-12-29 15:27:21.100959963 +0000
18 +++ linux-4.3/drivers/acpi/sleep.c 2015-12-29 15:28:36.828960630 +0000
20 static void acpi_power_off_prepare(void)
22 /* Prepare to power off the system */
23 - acpi_sleep_prepare(ACPI_STATE_S5);
24 + acpi_sleep_prepare(ACPI_STATE_S4);
25 acpi_disable_all_gpes();
26 acpi_os_wait_events_complete();
29 /* acpi_sleep_prepare(ACPI_STATE_S5) should have already been called */
30 printk(KERN_DEBUG "%s called\n", __func__);
32 - acpi_enter_sleep_state(ACPI_STATE_S5);
33 + acpi_enter_sleep_state(ACPI_STATE_S4);
36 int __init acpi_sleep_init(void)