2.6.34-stable review patch. If anyone has any objections, please let us know.

------------------

From: Rafael J. Wysocki <rjw@sisk.pl>

commit 9d3c752de65dbfa6e522f1d666deb0ac152ef367 upstream.

The sysfs interface allowing user space to disable/enable GPEsdoesn't work correctly, because a GPE disabled this way will bere-enabled shortly by acpi_ev_asynch_enable_gpe() if it waspreviosuly enabled by acpi_enable_gpe() (in which case thecorresponding bit in its enable register's enable_for_run mask isset).

To address this issue make the sysfs GPE interface useacpi_enable_gpe() and acpi_disable_gpe() instead of acpi_set_gpe()so that GPE reference counters are modified by it along with thevalues of GPE enable registers.