Print this page
XXXX introduce drv_sectohz

@@ -100,13 +100,13 @@
         disc_action_t           suggested_action;
         clock_t                 dl, short_delay, long_delay;
         int64_t                 tmp_delay;
 
         iport->iport_cmdcheck_clock = ddi_get_lbolt() +
-            drv_usectohz(FCT_CMDLIST_CHECK_SECONDS * 1000000);
+            drv_sectohz(FCT_CMDLIST_CHECK_SECONDS);
         short_delay = drv_usectohz(10000);
-        long_delay = drv_usectohz(1000000);
+        long_delay = drv_sectohz(1);
 
         stmf_trace(iport->iport_alias, "iport is %p", iport);
         /* Discovery loop */
         mutex_enter(&iport->iport_worker_lock);
         atomic_or_32(&iport->iport_flags, IPORT_WORKER_RUNNING);

@@ -154,11 +154,11 @@
                  * Check cmd max/free
                  */
                 if (iport->iport_cmdcheck_clock <= ddi_get_lbolt()) {
                         suggested_action |= fct_check_cmdlist(iport);
                         iport->iport_cmdcheck_clock = ddi_get_lbolt() +
-                            drv_usectohz(FCT_CMDLIST_CHECK_SECONDS * 1000000);
+                            drv_sectohz(FCT_CMDLIST_CHECK_SECONDS);
                         iport->iport_max_active_ncmds = 0;
                 }
 
                 if (iport->iport_offline_prstate != FCT_OPR_DONE) {
                         suggested_action |= fct_handle_port_offline(iport);

@@ -594,11 +594,11 @@
                             ~IPORT_ALLOW_UNSOL_FLOGI);
                 } else {
                         iport->iport_li_state++;
                         iport->iport_login_retry = 0;
                         iport->iport_li_cmd_timeout = ddi_get_lbolt() +
-                            drv_usectohz(25 * 1000000);
+                            drv_sectohz(25);
                 }
                 goto check_state_again;
 
         case LI_STATE_N2N_PLOGI:
                 ASSERT(IPORT_FLOGI_DONE(iport));