summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/sound.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-16 22:59:46 +0000
committerpeter <peter@FreeBSD.org>2001-06-16 22:59:46 +0000
commitcaf4a686e5258035deb90edbdbed7fd0b8958bd4 (patch)
treee21ea45a28bacc8b26342f453d5ea29a7e27ec9f /sys/dev/sound/pcm/sound.c
parent38ecd59e07aead868125833230bcfd1b264ff134 (diff)
downloadFreeBSD-src-caf4a686e5258035deb90edbdbed7fd0b8958bd4.zip
FreeBSD-src-caf4a686e5258035deb90edbdbed7fd0b8958bd4.tar.gz
Use INTR_TYPE_AV for the interrupt handlers because:
1: most drivers are sensitive to timing, and 2: the handlers are MPSAFE and need a chance to get into the kernel before some other non-mpsafe handler blocks the ithread on Giant in shared irq cases. Reviewed by: cg (in principle)
Diffstat (limited to 'sys/dev/sound/pcm/sound.c')
-rw-r--r--sys/dev/sound/pcm/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index ec8c2ed..ba41858 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -103,9 +103,9 @@ snd_setup_intr(device_t dev, struct resource *res, int flags, driver_intr_t hand
{
#ifdef USING_MUTEX
flags &= INTR_MPSAFE;
- flags |= INTR_TYPE_TTY;
+ flags |= INTR_TYPE_AV;
#else
- flags = INTR_TYPE_TTY;
+ flags = INTR_TYPE_AV;
#endif
return bus_setup_intr(dev, res, flags, hand, param, cookiep);
}
OpenPOWER on IntegriCloud