]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPICA: Dispatch active GPEs at init time
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Aug 2017 22:30:09 +0000 (00:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2017 18:54:33 +0000 (20:54 +0200)
commitecc1165b8b743fd1503b9c799ae3a9933b89877b
tree6194f62e34d732ee55f02f7ff9016c308883e209
parent98529b9272e06a7767034fb8a32e43cdecda240a
ACPICA: Dispatch active GPEs at init time

In some cases GPEs are already active when they are enabled by
acpi_ev_initialize_gpe_block() and whatever happens next may depend
on the result of handling the events signaled by them, so the
events should not be discarded (which is what happens currently) and
they should be handled as soon as reasonably possible.

For this reason, modify acpi_ev_initialize_gpe_block() to
dispatch GPEs with the status flag set in-band right after
enabling them.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/acpica/evgpeblk.c