Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/sfe/sfe.c
          +++ new/usr/src/uts/common/io/sfe/sfe.c
↓ open down ↓ 70 lines elided ↑ open up ↑
  71   71  #endif
  72   72  #define DPRINTF(n, args)        if (sfe_debug > (n)) cmn_err args
  73   73  #else
  74   74  #define CONS    "!"
  75   75  #define DPRINTF(n, args)
  76   76  #endif
  77   77  
  78   78  /*
  79   79   * Useful macros and typedefs
  80   80   */
  81      -#define ONESEC          (drv_usectohz(1*1000000))
       81 +#define ONESEC          drv_sectohz(1)
  82   82  #define ROUNDUP2(x, a)  (((x) + (a) - 1) & ~((a) - 1))
  83   83  
  84   84  /*
  85   85   * Our configuration
  86   86   */
  87   87  #define MAXTXFRAGS      1
  88   88  #define MAXRXFRAGS      1
  89   89  
  90   90  #ifndef TX_BUF_SIZE
  91   91  #define TX_BUF_SIZE     64
↓ open down ↓ 2328 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX