Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/intel-public/acpica/dist/events fix AcpiEnableGpe:
details: https://anonhg.NetBSD.org/src/rev/b19cce09467c
branches: trunk
changeset: 758862:b19cce09467c
user: cegger <cegger%NetBSD.org@localhost>
date: Thu Nov 18 14:40:31 2010 +0000
description:
fix AcpiEnableGpe:
GPEs get enabled at ACPI initialization. AcpiInstallGpeHandler() disables
GPEs using AcpiEvDisableGpe() w/o decrementing RuntimeCount.
So when acpiec(4) enables the GPE after installing the GPE Handler then
AcpiEnableGpe() does not call AcpiEvEnableGpe() because RuntimeCount
says it is already enabled which is wrong.
So decrement the RuntimeCount in AcpiInstallGpeHandler() right
before calling AcpiEvDisableGpe().
diffstat:
sys/external/intel-public/acpica/dist/events/evxface.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r f64cc5b272c3 -r b19cce09467c sys/external/intel-public/acpica/dist/events/evxface.c
--- a/sys/external/intel-public/acpica/dist/events/evxface.c Thu Nov 18 11:49:41 2010 +0000
+++ b/sys/external/intel-public/acpica/dist/events/evxface.c Thu Nov 18 14:40:31 2010 +0000
@@ -749,6 +749,7 @@
/* Disable the GPE before installing the handler */
+ GpeEventInfo->RuntimeCount--;
Status = AcpiEvDisableGpe (GpeEventInfo);
if (ACPI_FAILURE (Status))
{
Home |
Main Index |
Thread Index |
Old Index