Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fcoe/fcoe_common.h
          +++ new/usr/src/uts/common/sys/fcoe/fcoe_common.h
↓ open down ↓ 364 lines elided ↑ open up ↑
 365  365  #if !defined(__FUNCTION__)
 366  366  #define __FUNCTION__ ((caddr_t)__func__)
 367  367  #endif
 368  368  
 369  369  #define FCOE_STR_LEN 32
 370  370  
 371  371  /*
 372  372   * timestamp (golbal variable in sys/systm.h)
 373  373   */
 374  374  #define CURRENT_CLOCK           (ddi_get_lbolt())
 375      -#define FCOE_SEC2TICK(x_sec)    (drv_usectohz((x_sec) * 1000000))
      375 +#define FCOE_SEC2TICK(x_sec)    drv_sectohz(x_sec)
 376  376  
 377  377  /*
 378  378   * Form/convert mod_hash_key from/to xch ID
 379  379   */
 380  380  #define FMHK(x_xid)             (mod_hash_key_t)(uintptr_t)(x_xid)
 381  381  #define CMHK(x_key)             (uint16_t)(uintptr_t)(x_key)
 382  382  
 383  383  typedef void (*TQ_FUNC_P)(void *);
 384  384  extern void fcoe_trace(caddr_t ident, const char *fmt, ...);
 385  385  
 386  386  #endif
 387  387  
 388  388  #ifdef  __cplusplus
 389  389  }
 390  390  #endif
 391  391  
 392  392  #endif  /* _FCOE_COMMON_H_ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX