hppa runs at 100hz, so 10 ticks is 100ms.

ok?

Index: dev/power.c
===================================================================
RCS file: /cvs/src/sys/arch/hppa/dev/power.c,v
retrieving revision 1.9
diff -u -p -r1.9 power.c
--- dev/power.c 13 Jul 2014 09:09:16 -0000      1.9
+++ dev/power.c 8 Oct 2019 13:38:38 -0000
@@ -157,7 +157,7 @@ power_thread_dr(void *v)
                if (sc->sc_dr_cnt == hz / 10)
                        prsignal(initprocess, SIGUSR2);
 
-               tsleep(v, PWAIT, "drpower", 10);
+               tsleep_nsec(v, PWAIT, "drpower", MSEC_TO_NSEC(100));
        }
 }
 
@@ -174,7 +174,7 @@ power_thread_reg(void *v)
                if (!(r & 1))
                        prsignal(initprocess, SIGUSR2);
 
-               tsleep(v, PWAIT, "regpower", 10);
+               tsleep_nsec(v, PWAIT, "regpower", MSEC_TO_NSEC(100));
        }
 }
 
Index: gsc/gsckbc.c
===================================================================
RCS file: /cvs/src/sys/arch/hppa/gsc/gsckbc.c,v
retrieving revision 1.19
diff -u -p -r1.19 gsckbc.c
--- gsc/gsckbc.c        24 May 2015 10:57:47 -0000      1.19
+++ gsc/gsckbc.c        8 Oct 2019 13:38:38 -0000
@@ -936,7 +936,7 @@ pckbc_enqueue_cmd(self, slot, cmd, len, 
        if (IS_POLLING(q))
                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);
                        pckbc_cleanup(t);
                } else

Reply via email to