From 06faf06ac5d954ec12a65e88a886bc01355c9bfe Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Tue, 30 Nov 2004 17:48:10 +0000 Subject: 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. --- sys/dev/acpica/acpi_pci_link.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c index e6675f12d7e8..9b4ff66bc023 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); -- cgit v1.2.3