summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_stack.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-04-07 17:15:16 +0000
committerjhb <jhb@FreeBSD.org>2016-04-07 17:15:16 +0000
commit07227124862241463a10be15edbe413babb68e8e (patch)
tree75eeb0e72492caa1717b323c2961a80353110590 /lib/libthr/thread/thr_stack.c
parenteb925cdf00743d23b2dfdc0c9d749485a95f24ce (diff)
downloadFreeBSD-src-07227124862241463a10be15edbe413babb68e8e.zip
FreeBSD-src-07227124862241463a10be15edbe413babb68e8e.tar.gz
Associate device_t objects with ACPI handles via PCI_CHILD_ADDED().
Previously, the ACPI PCI bus driver did a single pass over the devices in the namespace that were a child of a given PCI bus to associate the PCI bus-enumerated device_t devices with the corresponding ACPI handles. However, this meant that handles were only established at runtime for devices found during the initial PCI bus scan. PCI_IOV adds devices that show up after the initial PCI bus scan, and coming changes to add a bus rescan can also add devices after the initial scan. This change adds a pci_child_added() callback to the ACPI PCI bus that walks the namespace to find the ACPI handle for each device that is added. Using a callback means that the handle is correctly set for any device no matter how it is added (initial scan, IOV, or a bus rescan).
Diffstat (limited to 'lib/libthr/thread/thr_stack.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud