Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/stmf/stmf_impl.h
          +++ new/usr/src/uts/common/io/comstar/stmf/stmf_impl.h
↓ open down ↓ 146 lines elided ↑ open up ↑
 147  147          kstat_t                 *ilport_kstat_info;
 148  148          kstat_t                 *ilport_kstat_io;
 149  149          kmutex_t                ilport_kstat_lock;
 150  150          char                    ilport_kstat_tgt_name[STMF_TGT_NAME_LEN];
 151  151          /* which target group this port belongs to in stmf_state.stmf_tg_list */
 152  152          void                    *ilport_tg;
 153  153          id_t                    ilport_instance;
 154  154          /* XXX Need something to track all the remote ports also */
 155  155  } stmf_i_local_port_t;
 156  156  
 157      -#define STMF_AVG_ONLINE_INTERVAL        (30 * drv_usectohz(1000000))
      157 +#define STMF_AVG_ONLINE_INTERVAL        drv_sectohz(30)
 158  158  
 159  159  #define MAX_IRPORT                      0x10000
 160  160  
 161  161  typedef struct stmf_i_remote_port {
 162  162          struct scsi_devid_desc  *irport_id;
 163  163          kmutex_t                irport_mutex;
 164  164          int                     irport_refcnt;
 165  165          id_t                    irport_instance;
 166  166          avl_node_t              irport_ln;
 167  167  } stmf_i_remote_port_t;
↓ open down ↓ 232 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX