diff options
author | scottl <scottl@FreeBSD.org> | 2004-02-09 05:29:05 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-02-09 05:29:05 +0000 |
commit | c2a792a65da9a0faf5abbd892d42a8e2b065c2ea (patch) | |
tree | 8005c236774dda079a8f82e68a0205a5247ab0af | |
parent | 971910673db583d7ac990299072ad8ec9ab2b9e6 (diff) | |
download | FreeBSD-src-c2a792a65da9a0faf5abbd892d42a8e2b065c2ea.zip FreeBSD-src-c2a792a65da9a0faf5abbd892d42a8e2b065c2ea.tar.gz |
Fall back to INTR_MPSAFE if INTR_FAST registration fails.
PR: kern/62276
-rw-r--r-- | sys/dev/aac/aac_pci.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c index 0d69364..06473e7 100644 --- a/sys/dev/aac/aac_pci.c +++ b/sys/dev/aac/aac_pci.c @@ -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' */ |