summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-08-17 18:36:07 +0000
committerNate Lawson <njl@FreeBSD.org>2004-08-17 18:36:07 +0000
commit4c37803a898b5320b8f6c444d3c23c8c71307731 (patch)
treeb71ba4f77ee76cc43d62960d12b3854b2a27b292
parente55a65d09222b8857935fbd228634c14c001fac6 (diff)
Notes
-rw-r--r--sys/dev/acpica/acpi_cmbat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_cmbat.c b/sys/dev/acpica/acpi_cmbat.c
index e849346842f4..90f46a412847 100644
--- a/sys/dev/acpica/acpi_cmbat.c
+++ b/sys/dev/acpica/acpi_cmbat.c
@@ -274,7 +274,12 @@ acpi_cmbat_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
acpi_UserNotify("CMBAT", h, notify);
- ACPI_SERIAL_BEGIN(cmbat);
+ /*
+ * Clear the appropriate last updated time. The next call to retrieve
+ * the battery status will get the new value for us. We don't need to
+ * acquire a lock since we are only clearing the time stamp and since
+ * calling _BST/_BIF can trigger a notify, we could deadlock also.
+ */
switch (notify) {
case ACPI_NOTIFY_DEVICE_CHECK:
case ACPI_BATTERY_BST_CHANGE:
@@ -287,7 +292,6 @@ acpi_cmbat_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
default:
break;
}
- ACPI_SERIAL_END(cmbat);
}
static int