diff options
| author | joerg <joerg@NetBSD.org> | 2007-10-18 18:54:56 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2007-10-18 18:54:56 +0000 |
| commit | d238692c3ed2a0b261d3f0ebcd262d0d545404c8 (patch) | |
| tree | eb3e0e92276c8ce9c225ba7f11d227255350ae63 /sys/dev/rcons | |
| parent | bc89ba23ac92689206b04b822077f3920d360cb5 (diff) | |
Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.
Diffstat (limited to 'sys/dev/rcons')
| -rw-r--r-- | sys/dev/rcons/rcons_kern.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rcons/rcons_kern.c b/sys/dev/rcons/rcons_kern.c index e0cf034b6a9..d4adb982935 100644 --- a/sys/dev/rcons/rcons_kern.c +++ b/sys/dev/rcons/rcons_kern.c @@ -1,4 +1,4 @@ -/* $NetBSD: rcons_kern.c,v 1.19 2007/07/09 21:01:20 ad Exp $ */ +/* $NetBSD: rcons_kern.c,v 1.20 2007/10/18 18:55:00 joerg Exp $ */ /* * Copyright (c) 1991, 1993 @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rcons_kern.c,v 1.19 2007/07/09 21:01:20 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rcons_kern.c,v 1.20 2007/10/18 18:55:00 joerg Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -103,7 +103,7 @@ rcons_output(tp) /* Come back if there's more to do */ if (tp->t_outq.c_cc) { tp->t_state |= TS_TIMEOUT; - callout_reset(&tp->t_rstrt_ch, 1, ttrstrt, tp); + callout_schedule(&tp->t_rstrt_ch, 1); } if (tp->t_outq.c_cc <= tp->t_lowat) { if (tp->t_state&TS_ASLEEP) { |
