summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-05-13 16:02:18 +0000
committerscottl <scottl@FreeBSD.org>2004-05-13 16:02:18 +0000
commitef5c6b69e0a0ff5964a5355e18da355064b4fe49 (patch)
treed461f9ea889baf90a058921f22be5f8e09737102 /sys/dev/aac
parent856cba49802e917ed270702a82836c43026fe167 (diff)
downloadFreeBSD-src-ef5c6b69e0a0ff5964a5355e18da355064b4fe49.zip
FreeBSD-src-ef5c6b69e0a0ff5964a5355e18da355064b4fe49.tar.gz
Enable INTR_ENTROPY if the interrupt is not set to INTR_FAST. Remove the
testing and setting of the INTR_ENTROPY macro as it is not needed in FreeBSD 5.x. Submitted by: Alex Vasylenko
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac_pci.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c
index 364d833..3fd02bf 100644
--- a/sys/dev/aac/aac_pci.c
+++ b/sys/dev/aac/aac_pci.c
@@ -224,16 +224,13 @@ aac_pci_attach(device_t dev)
device_printf(sc->aac_dev, "can't allocate interrupt\n");
goto out;
}
-#ifndef INTR_ENTROPY
-#define INTR_ENTROPY 0
-#endif
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 FAST interrupt\n");
if (bus_setup_intr(sc->aac_dev, sc->aac_irq,
- INTR_MPSAFE|INTR_TYPE_BIO, aac_intr,
- sc, &sc->aac_intr)) {
+ INTR_MPSAFE|INTR_ENTROPY, INTR_TYPE_BIO,
+ aac_intr, sc, &sc->aac_intr)) {
device_printf(sc->aac_dev,
"can't set up MPSAFE interrupt\n");
goto out;
OpenPOWER on IntegriCloud