Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/mgt/ibmf/ibmf.c
          +++ new/usr/src/uts/common/io/ib/mgt/ibmf/ibmf.c
↓ open down ↓ 265 lines elided ↑ open up ↑
 266  266          /*
 267  267           * Verify the client does not have a receive callback registered.
 268  268           * If there are messages, give some time for the messages to be
 269  269           * cleaned up.
 270  270           */
 271  271          secs = 60;
 272  272          mutex_enter(&clientp->ic_mutex);
 273  273          while (clientp->ic_recv_cb == NULL && clientp->ic_msgs_alloced != 0 &&
 274  274              secs > 0) {
 275  275                  mutex_exit(&clientp->ic_mutex);
 276      -                delay(drv_usectohz(1000000)); /* one second delay */
      276 +                delay(drv_sectohz(1)); /* one second delay */
 277  277                  secs--;
 278  278                  mutex_enter(&clientp->ic_mutex);
 279  279          }
 280  280  
 281  281          if (clientp->ic_recv_cb != NULL || clientp->ic_msgs_alloced != 0) {
 282  282                  IBMF_TRACE_4(IBMF_TNF_NODEBUG, DPRINT_L1,
 283  283                      ibmf_unregister_err, IBMF_TNF_ERROR, "",
 284  284                      "ibmf_unregister(): %s, flags = 0x%x, recv_cb = 0x%p, "
 285  285                      "msgs_alloced = %d\n",
 286  286                      tnf_string, msg, "busy with resources", tnf_uint, ic_flags,
↓ open down ↓ 1196 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX