diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-19 15:07:35 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-19 15:07:35 +0000 |
commit | 68af87218387ffa40a86125da9459ac9956907ea (patch) | |
tree | 0f31dc4932428f6c7fdeecf086255e2f88976521 /sys/dev/rcons/rcons_kern.c | |
parent | d74034f18f5e708e8409b442dd4d742d502dbe4f (diff) |
More old timeouts removal, mainly affected unused/unmaintained code.
Diffstat (limited to 'sys/dev/rcons/rcons_kern.c')
-rw-r--r-- | sys/dev/rcons/rcons_kern.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/rcons/rcons_kern.c b/sys/dev/rcons/rcons_kern.c index 2cbf0d64a1d..dac0b162946 100644 --- a/sys/dev/rcons/rcons_kern.c +++ b/sys/dev/rcons/rcons_kern.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcons_kern.c,v 1.4 2000/07/19 13:55:07 art Exp $ */ +/* $OpenBSD: rcons_kern.c,v 1.5 2001/08/19 15:07:34 miod Exp $ */ /* $NetBSD: rcons_kern.c,v 1.4 1996/03/14 19:02:33 christos Exp $ */ /* @@ -137,7 +137,7 @@ rcons_bell(rc) splx(s); (*rc->rc_bell)(1); /* XXX Chris doesn't like the following divide */ - timeout(rcons_belltmr, rc, hz/10); + timeout_add(&rc->bell_timeout, hz / 10); } } @@ -156,12 +156,12 @@ rcons_belltmr(p) (*rc->rc_bell)(0); if (i != 0) /* XXX Chris doesn't like the following divide */ - timeout(rcons_belltmr, rc, hz/30); + timeout_add(&rc->bell_timeout, hz / 30); } else { rc->rc_ringing = 1; splx(s); (*rc->rc_bell)(1); - timeout(rcons_belltmr, rc, hz/10); + timeout_add(&rc->bell_timeout, hz / 10); } } @@ -248,6 +248,8 @@ rcons_init(rc) rc->rc_bits |= FB_CURSOR; } + timeout_set(&rc->bell_timeout, rcons_belltmr, rc); + /* Initialization done; hook us up */ fbconstty->t_oproc = rcons_output; /*fbconstty->t_stop = (void (*)()) nullop;*/ |