ok?

Index: iockbc.c
===================================================================
RCS file: /cvs/src/sys/arch/sgi/dev/iockbc.c,v
retrieving revision 1.11
diff -u -p -r1.11 iockbc.c
--- iockbc.c    11 Feb 2015 07:05:39 -0000      1.11
+++ iockbc.c    8 Oct 2019 13:46:58 -0000
@@ -1056,7 +1056,7 @@ pckbc_enqueue_cmd(pckbc_tag_t self, pckb
        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
Index: mkbc.c
===================================================================
RCS file: /cvs/src/sys/arch/sgi/dev/mkbc.c,v
retrieving revision 1.14
diff -u -p -r1.14 mkbc.c
--- mkbc.c      3 Dec 2018 13:46:30 -0000       1.14
+++ mkbc.c      8 Oct 2019 13:46:58 -0000
@@ -747,7 +747,7 @@ pckbc_enqueue_cmd(pckbc_tag_t self, pckb
        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

Reply via email to