Deleted Added
full compact
tws_services.c (256281) tws_services.c (275977)
1/*
2 * Copyright (c) 2010, LSI Corp.
3 * All rights reserved.
4 * Author : Manjunath Ranganathaiah
5 * Support: freebsdraid@lsi.com
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 17 unchanged lines hidden (view full) ---

26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
1/*
2 * Copyright (c) 2010, LSI Corp.
3 * All rights reserved.
4 * Author : Manjunath Ranganathaiah
5 * Support: freebsdraid@lsi.com
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 17 unchanged lines hidden (view full) ---

26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
34 * $FreeBSD: stable/10/sys/dev/tws/tws_services.c 226887 2011-10-28 17:53:34Z delphij $
34 * $FreeBSD: stable/10/sys/dev/tws/tws_services.c 275977 2014-12-21 02:39:10Z smh $
35 */
36
37#include <dev/tws/tws.h>
38#include <dev/tws/tws_hdm.h>
39#include <dev/tws/tws_services.h>
40#include <sys/time.h>
41
42void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,

--- 347 unchanged lines hidden (view full) ---

390
391 struct tws_softc *sc = (struct tws_softc *)arg;
392
393 TWS_TRACE(sc, "reqs(in, out)", sc->stats.reqs_in, sc->stats.reqs_out);
394 TWS_TRACE(sc, "reqs(err, intrs)", sc->stats.reqs_errored
395 , sc->stats.num_intrs);
396 TWS_TRACE(sc, "reqs(ioctls, scsi)", sc->stats.ioctls
397 , sc->stats.scsi_ios);
35 */
36
37#include <dev/tws/tws.h>
38#include <dev/tws/tws_hdm.h>
39#include <dev/tws/tws_services.h>
40#include <sys/time.h>
41
42void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,

--- 347 unchanged lines hidden (view full) ---

390
391 struct tws_softc *sc = (struct tws_softc *)arg;
392
393 TWS_TRACE(sc, "reqs(in, out)", sc->stats.reqs_in, sc->stats.reqs_out);
394 TWS_TRACE(sc, "reqs(err, intrs)", sc->stats.reqs_errored
395 , sc->stats.num_intrs);
396 TWS_TRACE(sc, "reqs(ioctls, scsi)", sc->stats.ioctls
397 , sc->stats.scsi_ios);
398 timeout(tws_print_stats, sc, 300*hz);
399
398 callout_reset(&sc->stats_timer, 300 * hz, tws_print_stats, sc);
400}
401/* --------------------- misc service end --------------------- */
399}
400/* --------------------- misc service end --------------------- */