Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ixgbe/ixgbe_main.c
          +++ new/usr/src/uts/common/io/ixgbe/ixgbe_main.c
↓ open down ↓ 3697 lines elided ↑ open up ↑
3698 3698  
3699 3699  #pragma inline(ixgbe_arm_watchdog_timer)
3700 3700  static void
3701 3701  ixgbe_arm_watchdog_timer(ixgbe_t *ixgbe)
3702 3702  {
3703 3703          /*
3704 3704           * Fire a watchdog timer
3705 3705           */
3706 3706          ixgbe->watchdog_tid =
3707 3707              timeout(ixgbe_local_timer,
3708      -            (void *)ixgbe, 1 * drv_usectohz(1000000));
     3708 +            (void *)ixgbe, drv_sectohz(1));
3709 3709  
3710 3710  }
3711 3711  
3712 3712  /*
3713 3713   * ixgbe_enable_watchdog_timer - Enable and start the driver watchdog timer.
3714 3714   */
3715 3715  void
3716 3716  ixgbe_enable_watchdog_timer(ixgbe_t *ixgbe)
3717 3717  {
3718 3718          mutex_enter(&ixgbe->watchdog_lock);
↓ open down ↓ 2137 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX