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.
This commit is contained in:
parent
e6417f6fe2
commit
06faf06ac5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user