diff options
author | phk <phk@FreeBSD.org> | 2004-06-04 16:02:56 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-04 16:02:56 +0000 |
commit | ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa (patch) | |
tree | 3337821fdd2a353d2216412ea8dd39eb5e65f007 /sys/dev/zs | |
parent | 958f9d7c7609eaa9fcabd83035ded33f80da2f0d (diff) | |
download | FreeBSD-src-ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa.zip FreeBSD-src-ba3920e2a2eb1a3101ab8286d24d58fef6fd73aa.tar.gz |
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.
Diffstat (limited to 'sys/dev/zs')
-rw-r--r-- | sys/dev/zs/zs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c index 6de28ed..4695526 100644 --- a/sys/dev/zs/zs.c +++ b/sys/dev/zs/zs.c @@ -436,13 +436,13 @@ zstty_softintr(struct zstty_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); } } @@ -495,7 +495,7 @@ zsttyopen(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); @@ -512,7 +512,7 @@ zsttyclose(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); |