ACPI: PM: s2idle: Avoid rearming SCI for wakeup unnecessarily
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 Aug 2019 10:35:03 +0000 (12:35 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 Aug 2019 21:55:18 +0000 (23:55 +0200)
commit45dc1576e4575ba621cb6d017faf41531d8c1073
tree233324d71f68feaab08aa23660d7fe8702eb8c8d
parent11f26633cccb7243217370837cbb066a73f678a5
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>
drivers/acpi/sleep.c