Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/dnet/dnet_mii.c
          +++ new/usr/src/uts/intel/io/dnet/dnet_mii.c
↓ open down ↓ 723 lines elided ↑ open up ↑
 724  724                                              state == phy_state_linkup ?
 725  725                                              "up" : "down");
 726  726  #endif
 727  727                                  phydata->state = state;
 728  728                                  mac->mii_linknotify(mac->mii_dip, i, state);
 729  729                          }
 730  730                  }
 731  731          }
 732  732          /* Check the ports every 5 seconds */
 733  733          mac->portmon_timer = timeout((void (*)(void*))mii_portmon, (void *)mac,
 734      -            (clock_t)(5 * drv_usectohz(1000000)));
      734 +            drv_sectohz(5));
 735  735          if (mac->lock)
 736  736                  mutex_exit(mac->lock);
 737  737  }
 738  738  
 739  739  /*
 740  740   * Close a handle to the MII interface from a registered user
 741  741   */
 742  742  
 743  743  void
 744  744  mii_destroy(mii_handle_t mac)
↓ open down ↓ 234 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX