Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/ipmi/ipmi_kcs.c
          +++ new/usr/src/uts/intel/io/ipmi/ipmi_kcs.c
↓ open down ↓ 187 lines elided ↑ open up ↑
 188  188                  /* Clear OBF */
 189  189                  kcs_clear_obf(sc, status);
 190  190  
 191  191                  /* Write start to command */
 192  192                  OUTB(sc, KCS_CTL_STS, KCS_CONTROL_WRITE_START);
 193  193  
 194  194                  /* Wait for IBF = 0 */
 195  195                  status = kcs_wait_for_ibf(sc, 0);
 196  196                  if (KCS_STATUS_STATE(status) == KCS_STATUS_STATE_WRITE)
 197  197                          break;
 198      -                delay(drv_usectohz(1000000));
      198 +                delay(drv_sectohz(1));
 199  199          }
 200  200  
 201  201          if (KCS_STATUS_STATE(status) != KCS_STATUS_STATE_WRITE)
 202  202                  /* error state */
 203  203                  return (0);
 204  204  
 205  205          /* Clear OBF */
 206  206          kcs_clear_obf(sc, status);
 207  207  
 208  208          return (1);
↓ open down ↓ 303 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX