Print this page
XXXX introduce drv_sectohz
@@ -3199,11 +3199,11 @@
* 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));
+ delay(drv_sectohz(1));
mutex_enter(&ssp->task_mu);
}
if (ssp->task_flags & TASK_ALIVE_FLG) {
res = DDI_FAILURE;
@@ -3245,11 +3245,11 @@
/* 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));
+ 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);