From acf5cad5aa107ae0979edec169265ba01c2a3a13 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 23 Jan 2001 22:08:21 +0000 Subject: [PATCH] Move the definition of nsp_start_timer() earlier in the file before it is called so that it can be inlined. --- sys/dev/nsp/nsp.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c index 375c8381e94..b564c67bc65 100644 --- a/sys/dev/nsp/nsp.c +++ b/sys/dev/nsp/nsp.c @@ -341,6 +341,18 @@ nsphw_bus_reset(sc) bus_space_write_1(bst, bsh, nsp_irqcr, IRQSR_MASK); } +static __inline void +nsp_start_timer(sc, time) + struct nsp_softc *sc; + int time; +{ + bus_space_tag_t bst = sc->sc_iot; + bus_space_handle_t bsh = sc->sc_ioh; + + sc->sc_timer = time; + nsp_cr_write_1(bst, bsh, NSPR_TIMERCNT, time); +} + static int nsphw_start_selection(sc, cb) struct nsp_softc *sc; @@ -534,18 +546,6 @@ nsp_lun_init(sc, ti, li) return 0; } -static __inline void -nsp_start_timer(sc, time) - struct nsp_softc *sc; - int time; -{ - bus_space_tag_t bst = sc->sc_iot; - bus_space_handle_t bsh = sc->sc_ioh; - - sc->sc_timer = time; - nsp_cr_write_1(bst, bsh, NSPR_TIMERCNT, time); -} - /************************************************************** * General probe attach **************************************************************/