diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-29 19:34:24 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-29 19:34:24 +0000 |
commit | 334d27009bff0f4e7520c938f051991afc3aa5e1 (patch) | |
tree | b008acd9301c4bcafbea41e2280c7f4eb1285b1e /sys/arch/sparc64/dev | |
parent | d85610dc0af6079fdc2c1e29049368881c3acb06 (diff) |
The interrupt handler should now be mpsafe.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/vdsp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c index d77e916436a..3813138e74c 100644 --- a/sys/arch/sparc64/dev/vdsp.c +++ b/sys/arch/sparc64/dev/vdsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsp.c,v 1.31 2014/09/29 17:48:51 kettenis Exp $ */ +/* $OpenBSD: vdsp.c,v 1.32 2014/09/29 19:34:23 kettenis Exp $ */ /* * Copyright (c) 2009, 2011, 2014 Mark Kettenis * @@ -347,9 +347,11 @@ vdsp_attach(struct device *parent, struct device *self, void *aux) hv_ldc_rx_qconf(ca->ca_id, 0, 0); sc->sc_tx_ih = bus_intr_establish(ca->ca_bustag, sc->sc_tx_sysino, - IPL_BIO, 0, vdsp_tx_intr, sc, sc->sc_dv.dv_xname); + IPL_BIO, BUS_INTR_ESTABLISH_MPSAFE, vdsp_tx_intr, sc, + sc->sc_dv.dv_xname); sc->sc_rx_ih = bus_intr_establish(ca->ca_bustag, sc->sc_rx_sysino, - IPL_BIO, 0, vdsp_rx_intr, sc, sc->sc_dv.dv_xname); + IPL_BIO, BUS_INTR_ESTABLISH_MPSAFE, vdsp_rx_intr, sc, + sc->sc_dv.dv_xname); if (sc->sc_tx_ih == NULL || sc->sc_rx_ih == NULL) { printf(", can't establish interrupt\n"); return; |