Commit 45dc1576 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 11f26633
......@@ -1012,9 +1012,9 @@ static void acpi_s2idle_wake(void)
acpi_os_wait_events_complete(); /* synchronize EC GPE processing */
acpi_ec_flush_work();
acpi_os_wait_events_complete(); /* synchronize Notify handling */
}
rearm_wake_irq(acpi_sci_irq);
rearm_wake_irq(acpi_sci_irq);
}
}
static void acpi_s2idle_restore_early(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment