Print this page
XXXX introduce drv_sectohz

*** 8603,8613 **** * Waiting for the exit of the running hotplug thread or ioctl thread. */ static int hubd_wait_for_hotplug_exit(hubd_t *hubd) { ! clock_t until = drv_usectohz(1000000); int rval; ASSERT(mutex_owned(HUBD_MUTEX(hubd))); if (hubd->h_hotplug_thread) { --- 8603,8613 ---- * Waiting for the exit of the running hotplug thread or ioctl thread. */ static int hubd_wait_for_hotplug_exit(hubd_t *hubd) { ! clock_t until = drv_sectohz(1); int rval; ASSERT(mutex_owned(HUBD_MUTEX(hubd))); if (hubd->h_hotplug_thread) {
*** 8752,8762 **** NDI_DEVI_REMOVE, B_FALSE); mutex_exit(HUBD_MUTEX(hubd)); if (rval == USB_SUCCESS) break; ! delay(drv_usectohz(1000000)); /* 1s */ } } ndi_devi_enter(ddi_get_parent(rh_dip), &prh_circ); ndi_devi_enter(rh_dip, &rh_circ); --- 8752,8762 ---- NDI_DEVI_REMOVE, B_FALSE); mutex_exit(HUBD_MUTEX(hubd)); if (rval == USB_SUCCESS) break; ! delay(drv_sectohz(1)); } } ndi_devi_enter(ddi_get_parent(rh_dip), &prh_circ); ndi_devi_enter(rh_dip, &rh_circ);