Module Name:    src
Committed By:   skrll
Date:           Thu Feb  7 12:39:31 UTC 2019

Modified Files:
        src/sys/dev/usb: uthum.c

Log Message:
tsleep -> kpause


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/usb/uthum.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/uthum.c
diff -u src/sys/dev/usb/uthum.c:1.14 src/sys/dev/usb/uthum.c:1.15
--- src/sys/dev/usb/uthum.c:1.14	Sun Dec 10 17:03:07 2017
+++ src/sys/dev/usb/uthum.c	Thu Feb  7 12:39:31 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: uthum.c,v 1.14 2017/12/10 17:03:07 bouyer Exp $   */
+/*	$NetBSD: uthum.c,v 1.15 2019/02/07 12:39:31 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.14 2017/12/10 17:03:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uthum.c,v 1.15 2019/02/07 12:39:31 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -294,7 +294,7 @@ uthum_read_data(struct uthum_softc *sc, 
 
 	/* 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,

Reply via email to