Module Name: src
Committed By: skrll
Date: Thu Feb 7 12:37:41 UTC 2019
Modified Files:
src/sys/dev/usb: ulpt.c
Log Message:
tsleep -> kpause
To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/dev/usb/ulpt.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/ulpt.c
diff -u src/sys/dev/usb/ulpt.c:1.101 src/sys/dev/usb/ulpt.c:1.102
--- src/sys/dev/usb/ulpt.c:1.101 Tue Jan 22 06:38:28 2019
+++ src/sys/dev/usb/ulpt.c Thu Feb 7 12:37:40 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: ulpt.c,v 1.101 2019/01/22 06:38:28 skrll Exp $ */
+/* $NetBSD: ulpt.c,v 1.102 2019/02/07 12:37:40 skrll Exp $ */
/*
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.101 2019/01/22 06:38:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.102 2019/02/07 12:37:40 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -465,7 +465,7 @@ ulptopen(dev_t dev, int flag, int mode,
}
/* wait 1/4 second, give up if we get a signal */
- error = tsleep((void *)sc, LPTPRI | PCATCH, "ulptop", STEP);
+ error = kpause("ulptop", true, STEP, NULL);
if (error != EWOULDBLOCK) {
sc->sc_state = 0;
goto done;