Print this page
XXXX introduce drv_sectohz

@@ -383,11 +383,11 @@
                 /*
                  * This is only done on an administrative thread of
                  * execution so it is ok to take a while.
                  */
                 SRPT_DPRINTF_L3("stp_alloc_port, delaying");
-                delay(2 * drv_usectohz(1000000));
+                delay(drv_sectohz(2));
                 goto retry_registration;
         }
         SRPT_DPRINTF_L1("stp_alloc_port, STMF register local port err(0x%llx)",
             (u_longlong_t)status);
 

@@ -494,11 +494,11 @@
 
         /* loop waiting for all I/O to drain */
         for (;;) {
                 status = stmf_deregister_local_port(tgt->tp_lport);
                 if (status == STMF_BUSY) {
-                        delay(drv_usectohz(1000000));
+                        delay(drv_sectohz(1));
                 } else {
                         break;
                 }
         }