Print this page
XXXX introduce drv_sectohz

*** 3199,3209 **** * TODO - when the driver is modified to support * system suspend or if this routine gets called * during panic we should use drv_usecwait() rather * than delay in those circumstances. */ ! delay(drv_usectohz(1000000)); mutex_enter(&ssp->task_mu); } if (ssp->task_flags & TASK_ALIVE_FLG) { res = DDI_FAILURE; --- 3199,3209 ---- * TODO - when the driver is modified to support * system suspend or if this routine gets called * during panic we should use drv_usecwait() rather * than delay in those circumstances. */ ! delay(drv_sectohz(1)); mutex_enter(&ssp->task_mu); } if (ssp->task_flags & TASK_ALIVE_FLG) { res = DDI_FAILURE;
*** 3245,3255 **** /* Paranoia */ ssp->task_flags |= TASK_PAUSE_FLG; cv_signal(&ssp->task_cv); /* Release task daemon lock. */ mutex_exit(&ssp->task_mu); ! delay(drv_usectohz(1000000)); mutex_enter(&ssp->task_mu); } if ((ssp->task_flags & TASK_SLEEPING_FLG) || !(ssp->task_flags & TASK_ALIVE_FLG)) { mutex_exit(&ssp->task_mu); --- 3245,3255 ---- /* Paranoia */ ssp->task_flags |= TASK_PAUSE_FLG; cv_signal(&ssp->task_cv); /* Release task daemon lock. */ mutex_exit(&ssp->task_mu); ! delay(drv_sectohz(1)); mutex_enter(&ssp->task_mu); } if ((ssp->task_flags & TASK_SLEEPING_FLG) || !(ssp->task_flags & TASK_ALIVE_FLG)) { mutex_exit(&ssp->task_mu);