summaryrefslogtreecommitdiffstats
path: root/sys/dev/iir
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-01-08 15:47:23 +0000
committertrasz <trasz@FreeBSD.org>2010-01-08 15:47:23 +0000
commitda7de44de01029f14401423b32688e4039b0a415 (patch)
tree768a23e1b9a52cd577697d136bcc5793aedaf1c3 /sys/dev/iir
parentf5fb9588cc01d5d777198c1cb56ed543c1d6422f (diff)
downloadFreeBSD-src-da7de44de01029f14401423b32688e4039b0a415.zip
FreeBSD-src-da7de44de01029f14401423b32688e4039b0a415.tar.gz
Remove unused iir_watchdog().
Reviewed by: scottl
Diffstat (limited to 'sys/dev/iir')
-rw-r--r--sys/dev/iir/iir.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/dev/iir/iir.c b/sys/dev/iir/iir.c
index f5f6d7e..b0915c2 100644
--- a/sys/dev/iir/iir.c
+++ b/sys/dev/iir/iir.c
@@ -153,7 +153,6 @@ static void iir_action(struct cam_sim *sim, union ccb *ccb);
static void iir_poll(struct cam_sim *sim);
static void iir_shutdown(void *arg, int howto);
static void iir_timeout(void *arg);
-static void iir_watchdog(void *arg);
static void gdt_eval_mapping(u_int32_t size, int *cyls, int *heads,
int *secs);
@@ -1484,40 +1483,6 @@ iir_timeout(void *arg)
GDT_DPRINTF(GDT_D_TIMEOUT, ("iir_timeout(%p)\n", gccb));
}
-static void
-iir_watchdog(void *arg)
-{
- struct gdt_softc *gdt;
-
- gdt = (struct gdt_softc *)arg;
- GDT_DPRINTF(GDT_D_DEBUG, ("iir_watchdog(%p)\n", gdt));
-
- {
- int ccbs = 0, ucmds = 0, frees = 0, pends = 0;
- struct gdt_ccb *p;
- struct ccb_hdr *h;
- struct gdt_ucmd *u;
-
- for (h = TAILQ_FIRST(&gdt->sc_ccb_queue); h != NULL;
- h = TAILQ_NEXT(h, sim_links.tqe))
- ccbs++;
- for (u = TAILQ_FIRST(&gdt->sc_ucmd_queue); u != NULL;
- u = TAILQ_NEXT(u, links))
- ucmds++;
- for (p = SLIST_FIRST(&gdt->sc_free_gccb); p != NULL;
- p = SLIST_NEXT(p, sle))
- frees++;
- for (p = SLIST_FIRST(&gdt->sc_pending_gccb); p != NULL;
- p = SLIST_NEXT(p, sle))
- pends++;
-
- GDT_DPRINTF(GDT_D_TIMEOUT, ("ccbs %d ucmds %d frees %d pends %d\n",
- ccbs, ucmds, frees, pends));
- }
-
- timeout(iir_watchdog, (caddr_t)gdt, hz * 15);
-}
-
static void
iir_shutdown( void *arg, int howto )
{
OpenPOWER on IntegriCloud