Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb drop sc_intr_lock when calling into uaudio_chan_...
details: https://anonhg.NetBSD.org/src/rev/0da929e2aa76
branches: trunk
changeset: 771645:0da929e2aa76
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Nov 27 04:32:41 2011 +0000
description:
drop sc_intr_lock when calling into uaudio_chan_ptransfer().
diffstat:
sys/dev/usb/uaudio.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 23ca01433159 -r 0da929e2aa76 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c Sun Nov 27 04:10:38 2011 +0000
+++ b/sys/dev/usb/uaudio.c Sun Nov 27 04:32:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uaudio.c,v 1.122 2011/11/27 04:10:38 mrg Exp $ */
+/* $NetBSD: uaudio.c,v 1.123 2011/11/27 04:32:41 mrg Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.122 2011/11/27 04:10:38 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.123 2011/11/27 04:32:41 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2664,10 +2664,12 @@
ch->arg = arg;
KERNEL_LOCK(1, curlwp);
+ mutex_spin_exit(&sc->sc_intr_lock);
s = splusb();
for (i = 0; i < UAUDIO_NCHANBUFS-1; i++) /* XXX */
uaudio_chan_ptransfer(ch);
splx(s);
+ mutex_spin_enter(&sc->sc_intr_lock);
KERNEL_UNLOCK_ONE(curlwp);
return 0;
Home |
Main Index |
Thread Index |
Old Index