Print this page
XXXX introduce drv_sectohz
*** 628,638 ****
}
dkp->dk_flag |= CMDK_SUSPEND;
/* need to wait a while */
while (dadk_getcmds(DKTP_DATA) != 0) {
! delay(drv_usectohz(1000000));
if (count > 60) {
dkp->dk_flag &= ~CMDK_SUSPEND;
cv_broadcast(&dkp->dk_suspend_cv);
mutex_exit(&dkp->dk_mutex);
return (DDI_FAILURE);
--- 628,638 ----
}
dkp->dk_flag |= CMDK_SUSPEND;
/* need to wait a while */
while (dadk_getcmds(DKTP_DATA) != 0) {
! delay(drv_sectohz(1));
if (count > 60) {
dkp->dk_flag &= ~CMDK_SUSPEND;
cv_broadcast(&dkp->dk_suspend_cv);
mutex_exit(&dkp->dk_mutex);
return (DDI_FAILURE);