diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-01-21 21:54:01 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-01-21 21:54:01 +0000 |
commit | ebcf515942389f0e738f6323c8b553ceabee63f1 (patch) | |
tree | 02576077cba384aac928f4d78d19526d93f75d7b /sys/dev/adb/akbd.c | |
parent | 170b1962e3648be5d4b991579d61efbc60a24fd2 (diff) |
Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes.
ok krw@ miod@
Diffstat (limited to 'sys/dev/adb/akbd.c')
-rw-r--r-- | sys/dev/adb/akbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/adb/akbd.c b/sys/dev/adb/akbd.c index 938a9b25a1e..af1bbd19556 100644 --- a/sys/dev/adb/akbd.c +++ b/sys/dev/adb/akbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: akbd.c,v 1.6 2007/03/13 20:56:56 miod Exp $ */ +/* $OpenBSD: akbd.c,v 1.7 2009/01/21 21:53:59 grange Exp $ */ /* $NetBSD: akbd.c,v 1.17 2005/01/15 16:00:59 chs Exp $ */ /* @@ -449,7 +449,7 @@ akbd_rawrepeat(void *v) s = spltty(); wskbd_rawinput(sc->sc_wskbddev, sc->sc_rep, sc->sc_nrep); splx(s); - timeout_add(&sc->sc_rawrepeat_ch, hz * REP_DELAYN / 1000); + timeout_add_msec(&sc->sc_rawrepeat_ch, REP_DELAYN); } #endif @@ -576,7 +576,7 @@ akbd_input(struct akbd_softc *sc, int key) timeout_del(&sc->sc_rawrepeat_ch); sc->sc_nrep = npress; if (npress != 0) - timeout_add(&sc->sc_rawrepeat_ch, hz * REP_DELAY1/1000); + timeout_add_msec(&sc->sc_rawrepeat_ch, REP_DELAY1); #endif } else { wskbd_input(sc->sc_wskbddev, type, val); |