Skip to content

Commit 45dc157

Browse files
committed
ACPI: PM: s2idle: Avoid rearming SCI for wakeup unnecessarily
It is only necessary to rearm the ACPI SCI for wakeup if pm_system_cancel_wakeup() has been called, so invoke rearm_wake_irq() only in that case. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 11f2663 commit 45dc157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/sleep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,9 +1012,9 @@ static void acpi_s2idle_wake(void)
10121012
acpi_os_wait_events_complete(); /* synchronize EC GPE processing */
10131013
acpi_ec_flush_work();
10141014
acpi_os_wait_events_complete(); /* synchronize Notify handling */
1015-
}
10161015

1017-
rearm_wake_irq(acpi_sci_irq);
1016+
rearm_wake_irq(acpi_sci_irq);
1017+
}
10181018
}
10191019

10201020
static void acpi_s2idle_restore_early(void)

0 commit comments

Comments
 (0)