diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-11-30 17:48:10 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-11-30 17:48:10 +0000 |
commit | 06faf06ac5d954ec12a65e88a886bc01355c9bfe (patch) | |
tree | 2b54b8842575f3c38c3759cb268b617a85b46bba | |
parent | e6417f6fe2ab9ece408075f315a2d958f255a020 (diff) | |
download | src-06faf06ac5d954ec12a65e88a886bc01355c9bfe.tar.gz src-06faf06ac5d954ec12a65e88a886bc01355c9bfe.zip |
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.
Notes
Notes:
svn path=/head/; revision=138233
-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 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); |