summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-02-09 05:29:05 +0000
committerscottl <scottl@FreeBSD.org>2004-02-09 05:29:05 +0000
commitc2a792a65da9a0faf5abbd892d42a8e2b065c2ea (patch)
tree8005c236774dda079a8f82e68a0205a5247ab0af /sys/dev
parent971910673db583d7ac990299072ad8ec9ab2b9e6 (diff)
downloadFreeBSD-src-c2a792a65da9a0faf5abbd892d42a8e2b065c2ea.zip
FreeBSD-src-c2a792a65da9a0faf5abbd892d42a8e2b065c2ea.tar.gz
Fall back to INTR_MPSAFE if INTR_FAST registration fails.
PR: kern/62276
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/aac/aac_pci.c10
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' */
OpenPOWER on IntegriCloud