From 2140d01b277fa2ab698e66dda69e434f0be7bd13 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 4 Jun 2004 16:02:56 +0000 Subject: Machine generated patch which changes linedisc calls from accessing linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit. --- sys/dev/sab/sab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/sab') diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c index e546e24a4bc1f..0193431b9051c 100644 --- a/sys/dev/sab/sab.c +++ b/sys/dev/sab/sab.c @@ -622,13 +622,13 @@ sabtty_softintr(struct sabtty_softc *sc) if (sc->sc_iget == sc->sc_ibuf + sizeof(sc->sc_ibuf)) sc->sc_iget = sc->sc_ibuf; - (*linesw[tp->t_line].l_rint)(data, tp); + ttyld_rint(tp, data); } if (sc->sc_tx_done != 0) { sc->sc_tx_done = 0; tp->t_state &= ~TS_BUSY; - (*linesw[tp->t_line].l_start)(tp); + ttyld_start(tp); } } @@ -698,7 +698,7 @@ sabttyopen(dev_t dev, int flags, int mode, struct thread *td) if (error != 0) return (error); - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = ttyld_open(tp, dev); if (error != 0) return (error); @@ -715,7 +715,7 @@ sabttyclose(dev_t dev, int flags, int mode, struct thread *td) if ((tp->t_state & TS_ISOPEN) == 0) return (0); - (*linesw[tp->t_line].l_close)(tp, flags); + ttyld_close(tp, flags); ttyclose(tp); return (0); -- cgit v1.3