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 uthum(4)



details:   https://anonhg.NetBSD.org/src/rev/784773da4e03
branches:  nick-nhusb
changeset: 334611:784773da4e03
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jan 28 10:10:15 2017 +0000

description:
Remove tsleep from uthum(4)

diffstat:

 sys/dev/usb/TODO.usbmp |  3 +--
 sys/dev/usb/uthum.c    |  6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r d469a6f961cb -r 784773da4e03 sys/dev/usb/TODO.usbmp
--- a/sys/dev/usb/TODO.usbmp    Sat Jan 28 10:05:09 2017 +0000
+++ b/sys/dev/usb/TODO.usbmp    Sat Jan 28 10:10:15 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.usbmp,v 1.8.4.7 2017/01/28 10:05:09 skrll Exp $
+$NetBSD: TODO.usbmp,v 1.8.4.8 2017/01/28 10:10:15 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
-  - uthum.c
   - uyurex.c
 
 missing D_MPSAFE drivers:
diff -r d469a6f961cb -r 784773da4e03 sys/dev/usb/uthum.c
--- a/sys/dev/usb/uthum.c       Sat Jan 28 10:05:09 2017 +0000
+++ b/sys/dev/usb/uthum.c       Sat Jan 28 10:10:15 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uthum.c,v 1.10.14.8 2016/12/05 10:55:20 skrll Exp $   */
+/*     $NetBSD: uthum.c,v 1.10.14.9 2017/01/28 10:10:15 skrll Exp $   */
 /*     $OpenBSD: uthum.c,v 1.6 2010/01/03 18:43:02 deraadt Exp $   */
 
 /*
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uthum.c,v 1.10.14.8 2016/12/05 10:55:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uthum.c,v 1.10.14.9 2017/01/28 10:10:15 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -294,7 +294,7 @@
 
        /* wait if required */
        if (need_delay > 1)
-               tsleep(&sc->sc_sme, 0, "uthum", (need_delay*hz+999)/1000 + 1);
+               kpause("uthum", false, (need_delay*hz+999)/1000 + 1, NULL);
 
        /* get answer */
        if (uhidev_get_report(&sc->sc_hdev, UHID_FEATURE_REPORT,



Home | Main Index | Thread Index | Old Index