ACPI / ACPICA: Defer enabling of runtime GPEs (v3)
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 15 Sep 2010 22:30:43 +0000 (00:30 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 24 Sep 2010 20:55:47 +0000 (16:55 -0400)
commita210080195c95ebca2a517ee3057d71607aa65e0
tree96aa2aee4b9bdbc747b7a0d7150d0b41650ebe90
parent2422084a94fcd5038406261b331672a13c92c050
ACPI / ACPICA: Defer enabling of runtime GPEs (v3)

The current ACPI GPEs initialization code has a problem that it
enables some GPEs pointed to by device _PRW methods, generally
intended for signaling wakeup events (system or device wakeup).
These GPEs are then almost immediately disabled by the ACPI namespace
scanning code with the help of acpi_gpe_can_wake(), but it would be
better not to enable them at all until really necessary.

Modify the initialization of GPEs so that the ones that have
associated _Lxx or _Exx methods and are not pointed to by any _PRW
methods will be enabled after the namespace scan is complete.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
13 files changed:
drivers/acpi/acpica/acevents.h
drivers/acpi/acpica/acglobal.h
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/evevent.c
drivers/acpi/acpica/evgpeblk.c
drivers/acpi/acpica/evgpeinit.c
drivers/acpi/acpica/evxface.c
drivers/acpi/acpica/evxfevnt.c
drivers/acpi/acpica/utglobal.c
drivers/acpi/acpica/utxface.c
drivers/acpi/dock.c
drivers/acpi/scan.c
include/acpi/acpixf.h