summaryrefslogtreecommitdiff
path: root/sys/dev/pci/esa.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2013-05-24 07:58:48 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2013-05-24 07:58:48 +0000
commita17435250580896870a6e809bdf9191d8863f719 (patch)
tree4a8b4e47c49b101fa8f6c0f43f1e7a766fa35a89 /sys/dev/pci/esa.c
parent844dc26f6ca4b55b2888091e428d0faaffcc81a3 (diff)
Since audio code is mp safe, establish isa and pci audio interrupts
with the IPL_MPSAFE flag. In certain circumstances, this prevents interrupt handlers from waiting the global kernel_lock possibly (hold by slower code) to be released. ok kettenis
Diffstat (limited to 'sys/dev/pci/esa.c')
-rw-r--r--sys/dev/pci/esa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c
index ddd85bb3617..045c90e6e37 100644
--- a/sys/dev/pci/esa.c
+++ b/sys/dev/pci/esa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esa.c,v 1.26 2013/05/15 08:29:24 ratchov Exp $ */
+/* $OpenBSD: esa.c,v 1.27 2013/05/24 07:58:46 ratchov Exp $ */
/* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */
/*
@@ -1066,8 +1066,8 @@ esa_attach(struct device *parent, struct device *self, void *aux)
return;
}
intrstr = pci_intr_string(pc, ih);
- sc->sc_ih = pci_intr_establish(pc, ih, IPL_AUDIO, esa_intr, self,
- sc->sc_dev.dv_xname);
+ sc->sc_ih = pci_intr_establish(pc, ih, IPL_AUDIO | IPL_MPSAFE,
+ esa_intr, self, sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": can't establish interrupt");
if (intrstr != NULL)