]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ACPICA: Drop acpi_set_gpe
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 1 Jul 2010 03:07:20 +0000 (11:07 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 7 Jul 2010 02:34:27 +0000 (22:34 -0400)
commit546eb57695875712f676e5f729159b0779f1c0af
tree1f8da8d567b75fa1fb821b059f682d4bae92ce8e
parent3bd741bd0dfcc1845ae6892baa5192c91addc84c
ACPICA: Drop acpi_set_gpe

The acpi_set_gpe() function is a little awkward, because it doesn't
really work as advertised in the "disable" case.  Namely, if a GPE
has been enabled with acpi_enable_gpe() and triggered a notification
to occur, and if acpi_set_gpe() is used to disable it before
acpi_ev_asynch_enable_gpe() runs, the GPE will be immediately enabled
by the latter as though the acpi_set_gpe() had no effect.

Thus, since it's been possible to make all of its callers use
alternative operations to disable or enable GPEs, acpi_set_gpe() can
be dropped.

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