Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb sc_mtx is only ever taken in a usb task, i....
details: https://anonhg.NetBSD.org/src/rev/0086b58c7eec
branches: nick-nhusb
changeset: 334347:0086b58c7eec
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Dec 23 16:02:42 2015 +0000
description:
sc_mtx is only ever taken in a usb task, i.e. thread context so IPL_NONE
is fine.
diffstat:
sys/dev/usb/if_upgt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2ea18ae075df -r 0086b58c7eec sys/dev/usb/if_upgt.c
--- a/sys/dev/usb/if_upgt.c Wed Dec 23 09:52:41 2015 +0000
+++ b/sys/dev/usb/if_upgt.c Wed Dec 23 16:02:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_upgt.c,v 1.12.4.7 2015/10/06 21:32:15 skrll Exp $ */
+/* $NetBSD: if_upgt.c,v 1.12.4.8 2015/12/23 16:02:42 skrll Exp $ */
/* $OpenBSD: if_upgt.c,v 1.49 2010/04/20 22:05:43 tedu Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_upgt.c,v 1.12.4.7 2015/10/06 21:32:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_upgt.c,v 1.12.4.8 2015/12/23 16:02:42 skrll Exp $");
#include <sys/param.h>
#include <sys/callout.h>
@@ -2298,7 +2298,7 @@
data_cmd->buf = usbd_get_buffer(data_cmd->xfer);
- mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_SOFTNET);
+ mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_NONE);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index