Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/io/platsvc.c
          +++ new/usr/src/uts/sun4v/io/platsvc.c
↓ open down ↓ 48 lines elided ↑ open up ↑
  49   49  #else /* DEBUG */
  50   50  #define DBG     _NOTE(CONSTCOND) if (0) printf
  51   51  #endif /* DEBUG */
  52   52  
  53   53  /*
  54   54   * Time resolution conversions.
  55   55   */
  56   56  #define MS2NANO(x)      ((x) * MICROSEC)
  57   57  #define MS2SEC(x)       ((x) / MILLISEC)
  58   58  #define MS2MIN(x)       (MS2SEC(x) / 60)
  59      -#define SEC2HZ(x)       (drv_usectohz((x) * MICROSEC))
       59 +#define SEC2HZ(x)       drv_sectohz(x)
  60   60  
  61   61  /*
  62   62   * Domains Services interaction
  63   63   */
  64   64  static ds_svc_hdl_t     ds_md_handle;
  65   65  static ds_svc_hdl_t     ds_shutdown_handle;
  66   66  static ds_svc_hdl_t     ds_panic_handle;
  67   67  static ds_svc_hdl_t     ds_suspend_handle;
  68   68  
  69   69  static ds_ver_t         ps_vers[] = {{ 1, 0 }};
↓ open down ↓ 664 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX