From c2a792a65da9a0faf5abbd892d42a8e2b065c2ea Mon Sep 17 00:00:00 2001 From: scottl Date: Mon, 9 Feb 2004 05:29:05 +0000 Subject: Fall back to INTR_MPSAFE if INTR_FAST registration fails. PR: kern/62276 --- sys/dev/aac/aac_pci.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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' */ -- cgit v1.1