Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ntxn/unm_nic_main.c
          +++ new/usr/src/uts/common/io/ntxn/unm_nic_main.c
↓ open down ↓ 1158 lines elided ↑ open up ↑
1159 1159                   */
1160 1160                  return;
1161 1161          }
1162 1162  
1163 1163          unm_nic_handle_phy_intr(adapter);
1164 1164  
1165 1165          /*
1166 1166           * This function schedules a call for itself.
1167 1167           */
1168 1168          adapter->watchdog_timer = timeout((void (*)(void *))&unm_watchdog,
1169      -            (void *)adapter, 2 * drv_usectohz(1000000));
     1169 +            (void *)adapter, drv_sectohz(2));
1170 1170  
1171 1171  }
1172 1172  
1173 1173  static void unm_nic_clear_stats(unm_adapter *adapter)
1174 1174  {
1175 1175          (void) memset(&adapter->stats, 0, sizeof (adapter->stats));
1176 1176  }
1177 1177  
1178 1178  static void
1179 1179  unm_nic_poll(unm_adapter *adapter)
↓ open down ↓ 1418 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX