1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Remove unused iir_watchdog().

Reviewed by:	scottl
This commit is contained in:
Edward Tomasz Napierala 2010-01-08 15:47:23 +00:00
parent 913e66b64f
commit d8a9f5a9d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201796

View File

@ -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 )
{