diff options
| author | Steven Hartland <smh@FreeBSD.org> | 2014-11-21 21:01:24 +0000 |
|---|---|---|
| committer | Steven Hartland <smh@FreeBSD.org> | 2014-11-21 21:01:24 +0000 |
| commit | 85c9dd9d895261632d58cf98da6608b93dd5d7f8 (patch) | |
| tree | 5ebdafcf9900ec8ee871257dadfca8fdc7f4aa95 /sys/dev/iir/iir.c | |
| parent | 7db6c5cde6083b3cf76f1f85225c19052722dfd5 (diff) | |
Notes
Diffstat (limited to 'sys/dev/iir/iir.c')
| -rw-r--r-- | sys/dev/iir/iir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/iir/iir.c b/sys/dev/iir/iir.c index b2ebad8dad67e..27c5abb07c786 100644 --- a/sys/dev/iir/iir.c +++ b/sys/dev/iir/iir.c @@ -267,7 +267,7 @@ iir_init(struct gdt_softc *gdt) &gccb->gc_dmamap) != 0) return(1); gccb->gc_map_flag = TRUE; - gccb->gc_scratch = &gdt->sc_gcscratch[GDT_SCRATCH_SZ * i]; + gccb->gc_scratch = &gdt->sc_gcscratch[GDT_SCRATCH_SZ * i]; gccb->gc_scratch_busbase = gdt->sc_gcscratch_busbase + GDT_SCRATCH_SZ * i; callout_init_mtx(&gccb->gc_timeout, &gdt->sc_lock, 0); SLIST_INSERT_HEAD(&gdt->sc_free_gccb, gccb, sle); @@ -1234,8 +1234,8 @@ gdtexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) ccb->ccb_h.status |= CAM_SIM_QUEUED; /* timeout handling */ - callout_reset(&gccb->gc_timeout, (ccb->ccb_h.timeout * hz) / 1000, - iir_timeout, gccb); + callout_reset_sbt(&gccb->gc_timeout, SBT_1MS * ccb->ccb_h.timeout, 0, + iir_timeout, (caddr_t)gccb, 0); gdt->sc_copy_cmd(gdt, gccb); } |
