Print this page
XXXX introduce drv_sectohz
*** 271,281 ****
secs = 60;
mutex_enter(&clientp->ic_mutex);
while (clientp->ic_recv_cb == NULL && clientp->ic_msgs_alloced != 0 &&
secs > 0) {
mutex_exit(&clientp->ic_mutex);
! delay(drv_usectohz(1000000)); /* one second delay */
secs--;
mutex_enter(&clientp->ic_mutex);
}
if (clientp->ic_recv_cb != NULL || clientp->ic_msgs_alloced != 0) {
--- 271,281 ----
secs = 60;
mutex_enter(&clientp->ic_mutex);
while (clientp->ic_recv_cb == NULL && clientp->ic_msgs_alloced != 0 &&
secs > 0) {
mutex_exit(&clientp->ic_mutex);
! delay(drv_sectohz(1)); /* one second delay */
secs--;
mutex_enter(&clientp->ic_mutex);
}
if (clientp->ic_recv_cb != NULL || clientp->ic_msgs_alloced != 0) {