sleep.c (fa54150aad84dbbd92b26ce47e6b2cf7c686dca0) sleep.c (6f1d7c45dbbadd1a3c6eb9a9a485ef1975be4760)
1/*
2 * sleep.c - ACPI sleep support.
3 *
4 * Copyright (c) 2005 Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
5 * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
6 * Copyright (c) 2000-2003 Patrick Mochel
7 * Copyright (c) 2003 Open Source Development Lab
8 *

--- 975 unchanged lines hidden (view full) ---

984static void acpi_s2idle_sync(void)
985{
986 /*
987 * Process all pending events in case there are any wakeup ones.
988 *
989 * The EC driver uses the system workqueue and an additional special
990 * one, so those need to be flushed too.
991 */
1/*
2 * sleep.c - ACPI sleep support.
3 *
4 * Copyright (c) 2005 Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
5 * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
6 * Copyright (c) 2000-2003 Patrick Mochel
7 * Copyright (c) 2003 Open Source Development Lab
8 *

--- 975 unchanged lines hidden (view full) ---

984static void acpi_s2idle_sync(void)
985{
986 /*
987 * Process all pending events in case there are any wakeup ones.
988 *
989 * The EC driver uses the system workqueue and an additional special
990 * one, so those need to be flushed too.
991 */
992 acpi_os_wait_events_complete(); /* synchronize SCI IRQ handling */
992 acpi_ec_flush_work();
993 acpi_ec_flush_work();
993 acpi_os_wait_events_complete();
994 acpi_os_wait_events_complete(); /* synchronize Notify handling */
994 s2idle_wakeup = false;
995}
996
997static void acpi_s2idle_restore(void)
998{
999 if (acpi_sci_irq_valid())
1000 disable_irq_wake(acpi_sci_irq);
1001

--- 275 unchanged lines hidden ---
995 s2idle_wakeup = false;
996}
997
998static void acpi_s2idle_restore(void)
999{
1000 if (acpi_sci_irq_valid())
1001 disable_irq_wake(acpi_sci_irq);
1002

--- 275 unchanged lines hidden ---