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)
commitce43ace02320a3fb9614ddb27edc3a8700d68b26
treef9f58a63160186d343da73e2d5d966fdeeefb35b
parentc9a8bbb7704cbf515c0fc68970abbe4e91d68521
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