summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-21 21:54:01 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-21 21:54:01 +0000
commitebcf515942389f0e738f6323c8b553ceabee63f1 (patch)
tree02576077cba384aac928f4d78d19526d93f75d7b /sys/dev/wscons
parent170b1962e3648be5d4b991579d61efbc60a24fd2 (diff)
Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes. ok krw@ miod@
Diffstat (limited to 'sys/dev/wscons')
-rw-r--r--sys/dev/wscons/wskbd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c
index 9e644f6272b..867ac32e52b 100644
--- a/sys/dev/wscons/wskbd.c
+++ b/sys/dev/wscons/wskbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wskbd.c,v 1.59 2008/12/21 20:16:35 dlg Exp $ */
+/* $OpenBSD: wskbd.c,v 1.60 2009/01/21 21:54:00 grange Exp $ */
/* $NetBSD: wskbd.c,v 1.80 2005/05/04 01:52:16 augustss Exp $ */
/*
@@ -522,8 +522,7 @@ wskbd_repeat(void *v)
sc->sc_repeat_value);
}
if (sc->sc_keyrepeat_data.delN != 0)
- timeout_add(&sc->sc_repeat_ch,
- (hz * sc->sc_keyrepeat_data.delN) / 1000);
+ timeout_add_msec(&sc->sc_repeat_ch, sc->sc_keyrepeat_data.delN);
splx(s);
}
#endif
@@ -641,8 +640,8 @@ wskbd_input(struct device *dev, u_int type, int value)
if (sc->sc_keyrepeat_data.del1 != 0) {
sc->sc_repeating = num;
- timeout_add(&sc->sc_repeat_ch,
- (hz * sc->sc_keyrepeat_data.del1) / 1000);
+ timeout_add_msec(&sc->sc_repeat_ch,
+ sc->sc_keyrepeat_data.del1);
}
}
return;
@@ -657,8 +656,7 @@ wskbd_input(struct device *dev, u_int type, int value)
sc->sc_repeat_type = type;
sc->sc_repeat_value = value;
sc->sc_repeating = 1;
- timeout_add(&sc->sc_repeat_ch,
- (hz * sc->sc_keyrepeat_data.del1) / 1000);
+ timeout_add_msec(&sc->sc_repeat_ch, sc->sc_keyrepeat_data.del1);
}
#endif
}