Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ipw/ipw2100.c
          +++ new/usr/src/uts/common/io/ipw/ipw2100.c
↓ open down ↓ 1065 lines elided ↑ open up ↑
1066 1066           * ring move forward
1067 1067           */
1068 1068          sc->sc_tx_cur = RING_FORWARD(sc->sc_tx_cur, 1, IPW2100_NUM_TXBD);
1069 1069          sc->sc_tx_free--;
1070 1070          ipw2100_csr_put32(sc, IPW2100_CSR_TX_WRITE_INDEX, sc->sc_tx_cur);
1071 1071          mutex_exit(&sc->sc_tx_lock);
1072 1072  
1073 1073          /*
1074 1074           * wait for command done
1075 1075           */
1076      -        clk = drv_usectohz(1000000);    /* 1 second */
     1076 +        clk = drv_sectohz(1);
1077 1077          mutex_enter(&sc->sc_ilock);
1078 1078          while (sc->sc_done == 0) {
1079 1079                  /*
1080 1080                   * pending for the response
1081 1081                   */
1082 1082                  if (cv_reltimedwait(&sc->sc_cmd_cond, &sc->sc_ilock,
1083 1083                      clk, TR_CLOCK_TICK) < 0)
1084 1084                          break;
1085 1085          }
1086 1086          mutex_exit(&sc->sc_ilock);
↓ open down ↓ 1846 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX