Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/hxge/hxge_main.c
          +++ new/usr/src/uts/common/io/hxge/hxge_main.c
↓ open down ↓ 2422 lines elided ↑ open up ↑
2423 2423                  /*
2424 2424                   * Start timer to check the system error and tx hangs
2425 2425                   */
2426 2426                  hxgep->hxge_timerid = hxge_start_timer(hxgep,
2427 2427                      hxge_check_hw_state, HXGE_CHECK_TIMER);
2428 2428  
2429 2429                  hxgep->hxge_mac_state = HXGE_MAC_STARTED;
2430 2430  
2431 2431                  hxgep->timeout.link_status = 0;
2432 2432                  hxgep->timeout.report_link_status = B_TRUE;
2433      -                hxgep->timeout.ticks = drv_usectohz(2 * 1000000);
     2433 +                hxgep->timeout.ticks = drv_sectohz(2);
2434 2434  
2435 2435                  /* Start the link status timer to check the link status */
2436 2436                  MUTEX_ENTER(&hxgep->timeout.lock);
2437 2437                  hxgep->timeout.id = timeout(hxge_link_poll, (void *)hxgep,
2438 2438                      hxgep->timeout.ticks);
2439 2439                  MUTEX_EXIT(&hxgep->timeout.lock);
2440 2440          }
2441 2441  
2442 2442          MUTEX_EXIT(hxgep->genlock);
2443 2443  
↓ open down ↓ 2083 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX