summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2006-11-02 05:52:24 +0000
committermarco <marco@openbsd.org>2006-11-02 05:52:24 +0000
commit9b91a1086c550b0769cf16683bbda1ef36ea3686 (patch)
treec1257e0336ceb03581782dd397deee9a56b18d9a
parentset up a tick to check the link state every second. (diff)
downloadwireguard-openbsd-9b91a1086c550b0769cf16683bbda1ef36ea3686.tar.xz
wireguard-openbsd-9b91a1086c550b0769cf16683bbda1ef36ea3686.zip
Fix comments to reflect reality.
-rw-r--r--sys/dev/acpi/acpi.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 0fac40991f6..1f8b420de5f 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.59 2006/10/19 08:56:46 marco Exp $ */
+/* $OpenBSD: acpi.c,v 1.60 2006/11/02 05:52:24 marco Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -878,17 +878,19 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
acpi_softc = sc;
- /* attach devices found in dsdt */
+ /* initialize runtime environment */
aml_find_node(aml_root.child, "_INI", acpi_inidev, sc);
- /* attach devices found in dsdt */
+ /* attach embedded controller devices */
aml_find_node(aml_root.child, "_HID", acpi_foundec, sc);
+
+ /* attach battery, power supply and button devices */
aml_find_node(aml_root.child, "_HID", acpi_foundhid, sc);
- /* attach devices found in dsdt */
+ /* attach cpu devices */
aml_find_node(aml_root.child, "_PSS", acpi_foundpss, sc);
- /* attach devices found in dsdt */
+ /* attach thermal zone devices, XXX MUST be last entry */
aml_find_node(aml_root.child, "_TMP", acpi_foundtmp, sc);
/* create list of devices we want to query when APM come in */