]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Clear all non-wakeup GPEs in acpi_hw_enable_wakeup_gpe_block()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Sep 2014 00:24:38 +0000 (02:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Sep 2014 19:04:46 +0000 (21:04 +0200)
commite81276db943e93021ac20ecfbd9a4e201a8735c1
tree12816bef99f66f52f79b46d6299fcb4786b868e1
parent712251c1e4ff39037d8e4cb34557b58728565832
ACPICA: Clear all non-wakeup GPEs in acpi_hw_enable_wakeup_gpe_block()

Since acpi_hw_enable_wakeup_gpe_block() is currently always called
after disabling all GPEs, it can actually write zeros to all
non-wakeup enable bits unconditionally.

That will be useful going forward for disabling runtime GPEs and
enabling wakeup GPEs in one go instead of doing that in two steps
(disable runtime and enable wakeup) which in theory may lead to a
loss of a wakeup event.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/hwgpe.c