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 uyurex(4)
details: https://anonhg.NetBSD.org/src/rev/e363d440d044
branches: nick-nhusb
changeset: 334612:e363d440d044
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jan 28 10:15:01 2017 +0000
description:
Remove tsleep from uyurex(4)
diffstat:
sys/dev/usb/TODO.usbmp | 3 +--
sys/dev/usb/uyurex.c | 8 ++++----
2 files changed, 5 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r 784773da4e03 -r e363d440d044 sys/dev/usb/TODO.usbmp
--- a/sys/dev/usb/TODO.usbmp Sat Jan 28 10:10:15 2017 +0000
+++ b/sys/dev/usb/TODO.usbmp Sat Jan 28 10:15:01 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.usbmp,v 1.8.4.8 2017/01/28 10:10:15 skrll Exp $
+$NetBSD: TODO.usbmp,v 1.8.4.9 2017/01/28 10:15:01 skrll Exp $
the majority of the USB MP device interface is documented in usbdivar.h.
@@ -104,7 +104,6 @@
- uirda.c
- umass_isdata.c
- ustir.c
- - uyurex.c
missing D_MPSAFE drivers:
- ucycom
diff -r 784773da4e03 -r e363d440d044 sys/dev/usb/uyurex.c
--- a/sys/dev/usb/uyurex.c Sat Jan 28 10:10:15 2017 +0000
+++ b/sys/dev/usb/uyurex.c Sat Jan 28 10:15:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uyurex.c,v 1.9.14.8 2016/12/05 10:55:20 skrll Exp $ */
+/* $NetBSD: uyurex.c,v 1.9.14.9 2017/01/28 10:15:01 skrll Exp $ */
/* $OpenBSD: uyurex.c,v 1.3 2010/03/04 03:47:22 deraadt Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uyurex.c,v 1.9.14.8 2016/12/05 10:55:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uyurex.c,v 1.9.14.9 2017/01/28 10:15:01 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -359,7 +359,7 @@
return;
/* wait till sensor data are updated, 500ms will be enough */
- tsleep(&sc->sc_sme, 0, "uyurex", (500*hz+999)/1000 + 1);
+ kpause("uyurexrd", false, (500*hz+999)/1000 + 1, NULL);
}
void
@@ -382,5 +382,5 @@
return;
/* wait till sensor data are updated, 250ms will be enough */
- tsleep(&sc->sc_sme, 0, "uyurex", (250*hz+999)/1000 + 1);
+ kpause("uyurexwr", false, (250*hz+999)/1000 + 1, NULL);
}
Home |
Main Index |
Thread Index |
Old Index