summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsevent.c
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2019-08-08 02:19:19 +0000
committercheloha <cheloha@cvs.openbsd.org>2019-08-08 02:19:19 +0000
commitc022ae85ada69750c183d8e07bb6b3f5e0e7c110 (patch)
tree838c5b9a73dd66dadc73e3cb2254b71fad5b2836 /sys/dev/wscons/wsevent.c
parent19cee8c6521e711a45fff97320bd43b4403e6dce (diff)
wskbd, wsmouse(4): tsleep(9) -> tsleep_nsec(9); ok mpi@ kn@
Diffstat (limited to 'sys/dev/wscons/wsevent.c')
-rw-r--r--sys/dev/wscons/wsevent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsevent.c b/sys/dev/wscons/wsevent.c
index 8518bfc56e1..1b21796da9c 100644
--- a/sys/dev/wscons/wsevent.c
+++ b/sys/dev/wscons/wsevent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsevent.c,v 1.20 2019/05/22 18:52:14 anton Exp $ */
+/* $OpenBSD: wsevent.c,v 1.21 2019/08/08 02:19:18 cheloha Exp $ */
/* $NetBSD: wsevent.c,v 1.16 2003/08/07 16:31:29 agc Exp $ */
/*
@@ -162,8 +162,8 @@ wsevent_read(struct wseventvar *ev, struct uio *uio, int flags)
return (EWOULDBLOCK);
}
ev->wanted = 1;
- error = tsleep(ev, PWSEVENT | PCATCH,
- "wsevent_read", 0);
+ error = tsleep_nsec(ev, PWSEVENT | PCATCH,
+ "wsevent_read", INFSLP);
if (error) {
splx(s);
return (error);