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 Remove tsleep from uvscom(4)
details: https://anonhg.NetBSD.org/src/rev/3755a29883ca
branches: nick-nhusb
changeset: 334609:3755a29883ca
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jan 28 09:43:28 2017 +0000
description:
Remove tsleep from uvscom(4)
diffstat:
sys/dev/usb/TODO.usbmp | 3 +--
sys/dev/usb/uvscom.c | 6 +++---
2 files changed, 4 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r bf2641022fcf -r 3755a29883ca sys/dev/usb/TODO.usbmp
--- a/sys/dev/usb/TODO.usbmp Thu Jan 26 12:40:16 2017 +0000
+++ b/sys/dev/usb/TODO.usbmp Sat Jan 28 09:43:28 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.usbmp,v 1.8.4.5 2016/12/14 22:09:21 skrll Exp $
+$NetBSD: TODO.usbmp,v 1.8.4.6 2017/01/28 09:43:28 skrll Exp $
the majority of the USB MP device interface is documented in usbdivar.h.
@@ -106,7 +106,6 @@
- ulpt.c
- ustir.c
- uthum.c
- - uvscom.c
- uyurex.c
missing D_MPSAFE drivers:
diff -r bf2641022fcf -r 3755a29883ca sys/dev/usb/uvscom.c
--- a/sys/dev/usb/uvscom.c Thu Jan 26 12:40:16 2017 +0000
+++ b/sys/dev/usb/uvscom.c Sat Jan 28 09:43:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvscom.c,v 1.28.16.9 2016/12/05 10:55:20 skrll Exp $ */
+/* $NetBSD: uvscom.c,v 1.28.16.10 2017/01/28 09:43:28 skrll Exp $ */
/*-
* Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama%jp.FreeBSD.org@localhost>.
* All rights reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvscom.c,v 1.28.16.9 2016/12/05 10:55:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvscom.c,v 1.28.16.10 2017/01/28 09:43:28 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -759,7 +759,7 @@
/* unit is not ready */
for (i = UVSCOM_UNIT_WAIT; i > 0; --i) {
- tsleep(&err, TTIPRI, "uvsop", hz); /* XXX */
+ kpause("uvsopen", false, hz, NULL);
if (ISSET(sc->sc_usr, UVSCOM_USTAT_MASK))
break;
}
Home |
Main Index |
Thread Index |
Old Index