Print this page
XXXX introduce drv_sectohz

@@ -4325,11 +4325,11 @@
 
         rw_enter(&Adapter->chip_lock, RW_READER);
 
         if (tx_ring->resched_needed &&
             ((ddi_get_lbolt() - tx_ring->resched_timestamp) >
-            drv_usectohz(1000000)) &&
+            drv_sectohz(1)) &&
             (Adapter->e1000g_state & E1000G_STARTED) &&
             (tx_ring->tbd_avail >= DEFAULT_TX_NO_RESOURCE)) {
                 tx_ring->resched_needed = B_FALSE;
                 mac_tx_update(Adapter->mh);
                 E1000G_STAT(tx_ring->stat_reschedule);

@@ -4638,11 +4638,11 @@
 static void
 arm_watchdog_timer(struct e1000g *Adapter)
 {
         Adapter->watchdog_tid =
             timeout(e1000g_local_timer,
-            (void *)Adapter, 1 * drv_usectohz(1000000));
+            (void *)Adapter, drv_sectohz(1));
 }
 #pragma inline(arm_watchdog_timer)
 
 static void
 enable_watchdog_timer(struct e1000g *Adapter)