Module Name: src Committed By: jruoho Date: Mon Jun 7 17:13:52 UTC 2010
Modified Files: src/sys/dev/acpi: acpi.c acpi_util.c acpi_util.h Log Message: Use the new ACPICA functions AcpiAttachData() and AcpiGetData() to associate all "struct acpi_devnodes" to their corresponding ACPI_HANDLEs. Anywhere in the acpi(4) subtree, the node-structure can be obtained from a handle via acpi_get_node(). The idea is similar to e.g. device_private(). Benefits: (a) simplifies code, (b) avoids issues with locking as ACPICA does the serialization for us, (c) avoids the need to access the glocal softc, and (d) avoids the O(n) loop required to search for a handle from the node queue. To generate a diff of this commit: cvs rdiff -u -r1.201 -r1.202 src/sys/dev/acpi/acpi.c cvs rdiff -u -r1.4 -r1.5 src/sys/dev/acpi/acpi_util.c cvs rdiff -u -r1.2 -r1.3 src/sys/dev/acpi/acpi_util.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.