Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ofw Fix some callout fallout. Hi Jason!



details:   https://anonhg.NetBSD.org/src/rev/6e5d1270e2f2
branches:  trunk
changeset: 484917:6e5d1270e2f2
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Apr 14 19:31:50 2000 +0000

description:
Fix some callout fallout. Hi Jason!

diffstat:

 sys/dev/ofw/ofcons.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 417440541e00 -r 6e5d1270e2f2 sys/dev/ofw/ofcons.c
--- a/sys/dev/ofw/ofcons.c      Fri Apr 14 18:15:47 2000 +0000
+++ b/sys/dev/ofw/ofcons.c      Fri Apr 14 19:31:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofcons.c,v 1.10 2000/03/23 07:01:37 thorpej Exp $      */
+/*     $NetBSD: ofcons.c,v 1.11 2000/04/14 19:31:50 scw Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -88,9 +88,11 @@
        struct device *parent, *self;
        void *aux;
 {
+       struct ofcons_softc *sc = (struct ofcons_softc *) self;
+
        printf("\n");
 
-       callout_reset(&sc->sc_poll_ch);
+       callout_init(&sc->sc_poll_ch);
 }
 
 static void ofcons_start __P((struct tty *));
@@ -132,7 +134,7 @@
        
        if (!(sc->of_flags & OFPOLL)) {
                sc->of_flags |= OFPOLL;
-               callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, 1);
+               callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, sc);
        }
 
        return (*linesw[tp->t_line].l_open)(dev, tp);
@@ -270,7 +272,7 @@
                if (tp && (tp->t_state & TS_ISOPEN))
                        (*linesw[tp->t_line].l_rint)(ch, tp);
        }
-       callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, 1);
+       callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, sc);
 }
 
 static int



Home | Main Index | Thread Index | Old Index