Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb disable kpreempt around softint_schedule(). fix...
details: https://anonhg.NetBSD.org/src/rev/f47729349b4a
branches: trunk
changeset: 345088:f47729349b4a
user: mrg <mrg%NetBSD.org@localhost>
date: Sat May 07 08:09:43 2016 +0000
description:
disable kpreempt around softint_schedule(). fixes playing on umidi.
diffstat:
sys/dev/usb/umidi.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 599a65c1c5a9 -r f47729349b4a sys/dev/usb/umidi.c
--- a/sys/dev/usb/umidi.c Sat May 07 06:47:44 2016 +0000
+++ b/sys/dev/usb/umidi.c Sat May 07 08:09:43 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umidi.c,v 1.69 2016/04/23 10:15:32 skrll Exp $ */
+/* $NetBSD: umidi.c,v 1.70 2016/05/07 08:09:43 mrg Exp $ */
/*
* Copyright (c) 2001, 2012, 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.69 2016/04/23 10:15:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.70 2016/05/07 08:09:43 mrg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1786,7 +1786,9 @@
* before starting the USB transfer, and send a longer one.
*/
ep->soliciting = 1;
+ kpreempt_disable();
softint_schedule(ep->solicit_cookie);
+ kpreempt_enable();
}
if (--sc->sc_refcnt < 0)
Home |
Main Index |
Thread Index |
Old Index