sleep.c (4e03e4e6d2a03a9f2edeefaec12d4f336dee824d) sleep.c (63fb9623427fbb44e3782233b6e4714057b76ff2)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sleep.c - ACPI sleep support.
4 *
5 * Copyright (c) 2005 Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
6 * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
7 * Copyright (c) 2000-2003 Patrick Mochel
8 * Copyright (c) 2003 Open Source Development Lab

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

1001 * SCI has not triggered while suspended, so bail out (the
1002 * wakeup is pending anyway and the SCI is not the source of
1003 * it).
1004 */
1005 if (irqd_is_wakeup_armed(irq_get_irq_data(acpi_sci_irq)))
1006 return true;
1007
1008 /*
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sleep.c - ACPI sleep support.
4 *
5 * Copyright (c) 2005 Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
6 * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
7 * Copyright (c) 2000-2003 Patrick Mochel
8 * Copyright (c) 2003 Open Source Development Lab

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

1001 * SCI has not triggered while suspended, so bail out (the
1002 * wakeup is pending anyway and the SCI is not the source of
1003 * it).
1004 */
1005 if (irqd_is_wakeup_armed(irq_get_irq_data(acpi_sci_irq)))
1006 return true;
1007
1008 /*
1009 * If the status bit of any enabled fixed event is set, the
1010 * wakeup is regarded as valid.
1011 */
1012 if (acpi_any_fixed_event_status_set())
1013 return true;
1014
1015 /*
1009 * If there are no EC events to process and at least one of the
1010 * other enabled GPEs is active, the wakeup is regarded as a
1011 * genuine one.
1012 *
1013 * Note that the checks below must be carried out in this order
1014 * to avoid returning prematurely due to a change of the EC GPE
1015 * status bit from unset to set between the checks with the
1016 * status bits of all the other GPEs unset.

--- 333 unchanged lines hidden ---
1016 * If there are no EC events to process and at least one of the
1017 * other enabled GPEs is active, the wakeup is regarded as a
1018 * genuine one.
1019 *
1020 * Note that the checks below must be carried out in this order
1021 * to avoid returning prematurely due to a change of the EC GPE
1022 * status bit from unset to set between the checks with the
1023 * status bits of all the other GPEs unset.

--- 333 unchanged lines hidden ---