diff options
author | njl <njl@FreeBSD.org> | 2004-11-30 17:48:10 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-11-30 17:48:10 +0000 |
commit | 7877cefb867947b35732cfe1667b4a3deec6e9f7 (patch) | |
tree | 2b54b8842575f3c38c3759cb268b617a85b46bba /sys/dev/acpica | |
parent | ba6eb9dcb908ffe7a797968e8a9b7dff037333e4 (diff) | |
download | FreeBSD-src-7877cefb867947b35732cfe1667b4a3deec6e9f7.zip FreeBSD-src-7877cefb867947b35732cfe1667b4a3deec6e9f7.tar.gz |
Don't bother locking in attach(). At boot time, we're single-threaded
anyway and for some reason, witness seems confused about what's already
locked and triggers a false panic.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi_pci_link.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c index e6675f1..9b4ff66 100644 --- a/sys/dev/acpica/acpi_pci_link.c +++ b/sys/dev/acpica/acpi_pci_link.c @@ -270,7 +270,6 @@ acpi_pci_link_dump(struct acpi_pci_link_softc *sc) struct link *link; int i, j; - ACPI_SERIAL_ASSERT(pci_link); printf("Index IRQ Rtd Ref IRQs\n"); for (i = 0; i < sc->pl_num_links; i++) { link = &sc->pl_links[i]; @@ -294,7 +293,6 @@ acpi_pci_link_attach(device_t dev) int prslinks; sc = device_get_softc(dev); - ACPI_SERIAL_BEGIN(pci_link); /* * Count the number of current resources so we know how big of @@ -379,10 +377,9 @@ acpi_pci_link_attach(device_t dev) device_printf(dev, "Links after disable:\n"); acpi_pci_link_dump(sc); } - ACPI_SERIAL_END(pci_link); return (0); + fail: - ACPI_SERIAL_END(pci_link); for (i = 0; i < sc->pl_num_links; i++) if (sc->pl_links[i].l_irqs != NULL) free(sc->pl_links[i].l_irqs, M_PCI_LINK); |