]> git.baikalelectronics.ru Git - kernel.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)
commit09a8cf498a9d9b87613edb1da36d09f94c9f13d6
tree6194f62e34d732ee55f02f7ff9016c308883e209
parentf8a712a6acd25b62b5034076d5c24d0155414656
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