summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2019-10-17 13:42:16 +0000
committercheloha <cheloha@cvs.openbsd.org>2019-10-17 13:42:16 +0000
commitad2fceaa0af473b9782f6939ee98ff0534b51d59 (patch)
treece552ffb954a5a7751f83456ed885f0d3bf760ac
parentfeef698b98271f1dcda9486e1b38bcf4226f4d7c (diff)
sgi: iockbc(4), mkbc(4): tsleep(9) -> tsleep_nsec(9); ok kn@ visa@
-rw-r--r--sys/arch/sgi/dev/iockbc.c4
-rw-r--r--sys/arch/sgi/dev/mkbc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sgi/dev/iockbc.c b/sys/arch/sgi/dev/iockbc.c
index f5701fb2f54..7625be05e55 100644
--- a/sys/arch/sgi/dev/iockbc.c
+++ b/sys/arch/sgi/dev/iockbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iockbc.c,v 1.11 2015/02/11 07:05:39 dlg Exp $ */
+/* $OpenBSD: iockbc.c,v 1.12 2019/10/17 13:42:15 cheloha Exp $ */
/*
* Copyright (c) 2013, Miodrag Vallat
* Copyright (c) 2006, 2007, 2009 Joel Sing <jsing@openbsd.org>
@@ -1056,7 +1056,7 @@ pckbc_enqueue_cmd(pckbc_tag_t self, pckbc_slot_t slot, u_char *cmd, int len,
if (q->polling)
res = (sync ? nc->status : 0);
else if (sync) {
- if ((res = tsleep(nc, 0, "kbccmd", 1*hz))) {
+ if ((res = tsleep_nsec(nc, 0, "kbccmd", SEC_TO_NSEC(1)))) {
TAILQ_REMOVE(&q->cmdqueue, nc, next);
iockbc_cleanup(t);
} else
diff --git a/sys/arch/sgi/dev/mkbc.c b/sys/arch/sgi/dev/mkbc.c
index 982b5cd4171..c4bbb622e19 100644
--- a/sys/arch/sgi/dev/mkbc.c
+++ b/sys/arch/sgi/dev/mkbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkbc.c,v 1.14 2018/12/03 13:46:30 visa Exp $ */
+/* $OpenBSD: mkbc.c,v 1.15 2019/10/17 13:42:15 cheloha Exp $ */
/*
* Copyright (c) 2006, 2007, Joel Sing
@@ -747,7 +747,7 @@ pckbc_enqueue_cmd(pckbc_tag_t self, pckbc_slot_t slot, u_char *cmd, int len,
if (q->polling)
res = (sync ? nc->status : 0);
else if (sync) {
- if ((res = tsleep(nc, 0, "kbccmd", 1*hz))) {
+ if ((res = tsleep_nsec(nc, 0, "kbccmd", SEC_TO_NSEC(1)))) {
TAILQ_REMOVE(&q->cmdqueue, nc, next);
mkbc_cleanup(t);
} else