Print this page
XXXX introduce drv_sectohz
@@ -773,11 +773,11 @@
/*
* Wait if there's any activity on the port
*/
if ((pp->e_busy == ECPP_BUSY) || (pp->e_busy == ECPP_FLUSH)) {
(void) cv_reltimedwait(&pp->pport_cv, &pp->umutex,
- SUSPEND_TOUT * drv_usectohz(1000000),
+ drv_sectohz(SUSPEND_TOUT),
TR_CLOCK_TICK);
if ((pp->e_busy == ECPP_BUSY) ||
(pp->e_busy == ECPP_FLUSH)) {
pp->suspended = FALSE;
mutex_exit(&pp->umutex);
@@ -2802,11 +2802,11 @@
break;
}
/* schedule transfer timeout */
pp->timeout_id = timeout(ecpp_xfer_timeout, (caddr_t)pp,
- pp->xfer_parms.write_timeout * drv_usectohz(1000000));
+ drv_sectohz(pp->xfer_parms.write_timeout));
}
/*
* Transfer a PIO "block" a byte at a time.
* The block is starts at addr and ends at pp->last_byte