Fall back to INTR_MPSAFE if INTR_FAST registration fails.
PR: kern/62276
This commit is contained in:
parent
971910673d
commit
c2a792a65d
@ -226,8 +226,14 @@ aac_pci_attach(device_t dev)
|
||||
if (bus_setup_intr(sc->aac_dev, sc->aac_irq,
|
||||
INTR_FAST|INTR_TYPE_BIO, aac_intr,
|
||||
sc, &sc->aac_intr)) {
|
||||
device_printf(sc->aac_dev, "can't set up interrupt\n");
|
||||
goto out;
|
||||
device_printf(sc->aac_dev, "can't set up FAST interrupt\n");
|
||||
if (bus_setup_intr(sc->aac_dev, sc->aac_irq,
|
||||
INTR_MPSAFE|INTR_TYPE_BIO, aac_intr,
|
||||
sc, &sc->aac_intr)) {
|
||||
device_printf(sc->aac_dev,
|
||||
"can't set up MPSAFE interrupt\n");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
/* assume failure is 'out of memory' */
|
||||
|
Loading…
Reference in New Issue
Block a user