]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / ACPICA: Fix GPE initialization
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 8 Jun 2010 08:50:20 +0000 (10:50 +0200)
committerLen Brown <len.brown@intel.com>
Sat, 12 Jun 2010 04:45:19 +0000 (00:45 -0400)
commitc5b137d55334d0b410785fb5413112f206c1386f
treef9f58a63160186d343da73e2d5d966fdeeefb35b
parent903c541af1e50f01ae8999d3beae231ddd0c404b
ACPI / ACPICA: Fix GPE initialization

While developing the GPE reference counting code we overlooked the
fact that acpi_ev_update_gpes() could have enabled GPEs before
acpi_ev_initialize_gpe_block() was called.  As a result, some GPEs
are enabled twice during the initialization.

To fix this issue avoid calling acpi_enable_gpe() from
acpi_ev_initialize_gpe_block() for the GPEs that have nonzero
runtime reference counters.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/evgpeblk.c