summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-08-15 06:33:11 +0000
committernjl <njl@FreeBSD.org>2003-08-15 06:33:11 +0000
commit963f1a71f8d9633caae6e755aad9fd5bbda80485 (patch)
tree00dbd4833b04bdc6d2ccd576011d12f6a593d61c /sys/dev/acpica
parent0650dcad61de0602e84d43128393a5a16ec53d44 (diff)
downloadFreeBSD-src-963f1a71f8d9633caae6e755aad9fd5bbda80485.zip
FreeBSD-src-963f1a71f8d9633caae6e755aad9fd5bbda80485.tar.gz
Revert part of rev. 1.16 -- reinstate system notify handler. It turns out
at least the Casio FIVA requires this. Requested by: takawata
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_acad.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index 9370fdb..605ee1a 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -172,6 +172,12 @@ acpi_acad_attach(device_t dev)
sc->status = -1;
sc->initializing = 0;
+ /*
+ * Also install a system notify handler even though this is not
+ * required by the specification. The Casio FIVA needs this.
+ */
+ AcpiInstallNotifyHandler(handle, ACPI_SYSTEM_NOTIFY,
+ acpi_acad_notify_handler, dev);
AcpiInstallNotifyHandler(handle, ACPI_DEVICE_NOTIFY,
acpi_acad_notify_handler, dev);
AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_init_acline, dev);
OpenPOWER on IntegriCloud