Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev mark vaudio callout and softint handle...
details: https://anonhg.NetBSD.org/src/rev/5a87786dd7f6
branches: trunk
changeset: 772262:5a87786dd7f6
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Dec 26 23:50:43 2011 +0000
description:
mark vaudio callout and softint handler as mpsafe
diffstat:
sys/arch/usermode/dev/vaudio.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 4bd0ac0e6f9c -r 5a87786dd7f6 sys/arch/usermode/dev/vaudio.c
--- a/sys/arch/usermode/dev/vaudio.c Mon Dec 26 22:58:45 2011 +0000
+++ b/sys/arch/usermode/dev/vaudio.c Mon Dec 26 23:50:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vaudio.c,v 1.1 2011/12/26 21:09:22 jmcneill Exp $ */
+/* $NetBSD: vaudio.c,v 1.2 2011/12/26 23:50:43 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vaudio.c,v 1.1 2011/12/26 21:09:22 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vaudio.c,v 1.2 2011/12/26 23:50:43 jmcneill Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -167,15 +167,15 @@
}
sc->sc_play.st_softc = sc;
- sc->sc_play.st_sih = softint_establish(SOFTINT_SERIAL,
+ sc->sc_play.st_sih = softint_establish(SOFTINT_SERIAL|SOFTINT_MPSAFE,
vaudio_softintr_play, &sc->sc_play);
- callout_init(&sc->sc_play.st_callout, 0);
+ callout_init(&sc->sc_play.st_callout, CALLOUT_MPSAFE);
callout_setfunc(&sc->sc_play.st_callout, vaudio_intr, &sc->sc_play);
sc->sc_record.st_softc = sc;
- sc->sc_record.st_sih = softint_establish(SOFTINT_SERIAL,
+ sc->sc_record.st_sih = softint_establish(SOFTINT_SERIAL|SOFTINT_MPSAFE,
vaudio_softintr_record, &sc->sc_record);
- callout_init(&sc->sc_record.st_callout, 0);
+ callout_init(&sc->sc_record.st_callout, CALLOUT_MPSAFE);
callout_setfunc(&sc->sc_record.st_callout, vaudio_intr, &sc->sc_record);
sc->sc_audiodev = audio_attach_mi(&vaudio_hw_if, sc, self);
Home |
Main Index |
Thread Index |
Old Index