Print this page
XXXX introduce drv_sectohz
@@ -765,11 +765,11 @@
count = 0;
while ((count++ <= 30) &&
(fcsm_num_attaching || fcsm_num_detaching)) {
mutex_exit(&fcsm_global_mutex);
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
mutex_enter(&fcsm_global_mutex);
}
/* Port attach/detach still in prog, so fail detach */
if (fcsm_num_attaching || fcsm_num_detaching) {
@@ -1053,11 +1053,11 @@
* timeout and other (??) threads.
*/
count = 0;
while ((count++ <= 30) && (fcsm->sm_ncmds || fcsm->sm_cb_count)) {
mutex_exit(&fcsm->sm_mutex);
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
mutex_enter(&fcsm->sm_mutex);
}
if (fcsm->sm_ncmds || fcsm->sm_cb_count) {
fcsm->sm_flags &= ~flag;
mutex_exit(&fcsm->sm_mutex);
@@ -1566,11 +1566,11 @@
FCSM_DEBUG(SMDL_TRACE,
(CE_WARN, SM_LOG, NULL, NULL,
"fciocmd: instance 0x%x, "
"wait for port attach", instance));
}
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
fcsm = ddi_get_soft_state(fcsm_state, instance);
}
if (count > 30) {
FCSM_DEBUG(SMDL_TRACE, (CE_WARN, SM_LOG, NULL, NULL,
"fciocmd: instance 0x%x, port not attached",