acpi: sync GPE with FreeBSD 8.0 (and according the acpi api)
authorMagliano Andrea <masterblaster@tiscali.it>
Thu, 24 Feb 2011 16:37:44 +0000 (17:37 +0100)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 27 Mar 2011 10:34:00 +0000 (18:34 +0800)
commit29b0d8e7b398c0db96e877a1a0ff818fc557d619
tree1ddb2c99dc3c6a6d9c14803810f507e4778e2c58
parent29bac7280ddb97b1bbc4fedeb1336379219808ca
acpi: sync GPE with FreeBSD 8.0 (and according the acpi api)

* use AcpiSetGpeWakeMask(), as AcpiEnableGpe() is already done in
  embedded controller initialization code. AcpiSetGpeWakeMask()
  is needed anyway to mark the gpe as wakable.
  (AcpiEnableGpe() enableas automatically only runtime GPEs now)

* using AcpiFinishGpe() in EcGpeQueryHandler() (as fbsd does) seems
  to make the system reactive as it should (was sensibly slowly
  without that)
sys/dev/acpica5/acpi.c
sys/dev/acpica5/acpi_button.c
sys/dev/acpica5/acpi_ec.c
sys/dev/acpica5/acpi_lid.c
sys/dev/acpica5/acpivar.h