Print this page
XXXX introduce drv_sectohz

@@ -2213,11 +2213,11 @@
         if (status) {
                 cmn_err(CE_WARN, "%s: Couldn't bring down link\n", mgp->name);
         }
 
         while (old_down_cnt == *((volatile int *)&mgp->down_cnt)) {
-                delay(1 * drv_usectohz(1000000));
+                delay(drv_sectohz(1));
                 wait_time--;
                 if (wait_time == 0)
                         break;
         }
 again:

@@ -2241,15 +2241,15 @@
                         polling = mgp->ss->rx_polling;
                         mutex_exit(&mgp->ss->poll_lock);
                         if (polling) {
                                 printf("%s: slice %d is polling\n",
                                     mgp->name, i);
-                                delay(1 * drv_usectohz(1000000));
+                                delay(drv_sectohz(1));
                                 goto again;
                         }
                 }
-                delay(1 * drv_usectohz(1000000));
+                delay(drv_sectohz(1));
                 if (old_down_cnt == *((volatile int *)&mgp->down_cnt)) {
                         cmn_err(CE_WARN, "%s: Never got down irq\n", mgp->name);
                 }
         }
 

@@ -5875,11 +5875,11 @@
         mgp->running = MYRI10GE_ETH_STOPPED;
         mgp->vso = vso;
         mgp->dip = dip;
         mgp->cfg_hdl = handle;
 
-        mgp->timer_ticks = 5 * drv_usectohz(1000000); /* 5 seconds */
+        mgp->timer_ticks = drv_sectohz(5);
         myri10ge_test_physical(dip);
 
         /* allocate command page */
         bytes = sizeof (*mgp->cmd);
         mgp->cmd = (mcp_cmd_response_t *)