Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7-nhusb]: src/sys/dev/usb Convert tsleep to kpause
details: https://anonhg.NetBSD.org/src/rev/6fd312344cd3
branches: netbsd-7-nhusb
changeset: 801043:6fd312344cd3
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Mar 31 10:00:15 2017 +0000
description:
Convert tsleep to kpause
diffstat:
sys/dev/usb/uthum.c | 6 +++---
sys/dev/usb/uvscom.c | 6 +++---
sys/dev/usb/uyurex.c | 10 +++++-----
3 files changed, 11 insertions(+), 11 deletions(-)
diffs (97 lines):
diff -r 48e6190be338 -r 6fd312344cd3 sys/dev/usb/uthum.c
--- a/sys/dev/usb/uthum.c Fri Mar 31 09:38:05 2017 +0000
+++ b/sys/dev/usb/uthum.c Fri Mar 31 10:00:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uthum.c,v 1.10.18.2 2017/01/26 21:54:25 skrll Exp $ */
+/* $NetBSD: uthum.c,v 1.10.18.3 2017/03/31 10:00: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.18.2 2017/01/26 21:54:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uthum.c,v 1.10.18.3 2017/03/31 10:00: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,
diff -r 48e6190be338 -r 6fd312344cd3 sys/dev/usb/uvscom.c
--- a/sys/dev/usb/uvscom.c Fri Mar 31 09:38:05 2017 +0000
+++ b/sys/dev/usb/uvscom.c Fri Mar 31 10:00:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvscom.c,v 1.28.20.2 2017/01/26 21:54:25 skrll Exp $ */
+/* $NetBSD: uvscom.c,v 1.28.20.3 2017/03/31 10:00:15 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.20.2 2017/01/26 21:54:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvscom.c,v 1.28.20.3 2017/03/31 10:00:15 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;
}
diff -r 48e6190be338 -r 6fd312344cd3 sys/dev/usb/uyurex.c
--- a/sys/dev/usb/uyurex.c Fri Mar 31 09:38:05 2017 +0000
+++ b/sys/dev/usb/uyurex.c Fri Mar 31 10:00:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uyurex.c,v 1.9.12.1.4.3 2017/03/31 09:38:05 skrll Exp $ */
+/* $NetBSD: uyurex.c,v 1.9.12.1.4.4 2017/03/31 10:00:15 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.12.1.4.3 2017/03/31 09:38:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uyurex.c,v 1.9.12.1.4.4 2017/03/31 10:00:15 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -341,7 +341,7 @@
}
/* wait ack */
- tsleep(&sc->sc_sme, 0, "uyurex", (1000*hz+999)/1000 + 1);
+ kpause("uyurexsm", false, (1000*hz+999)/1000 + 1, NULL);
}
void
@@ -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