Print this page
XXXX introduce drv_sectohz

*** 1767,1777 **** * which becomes zero when all data is submitted to DSD. But usbser * stays busy until it gets tx callback from DSD, signalling that * data has been sent over USB. To be continued in the next comment... */ until = ddi_get_lbolt() + ! drv_usectohz(USBSER_WQ_DRAIN_TIMEOUT * 1000000); while ((pp->port_wq_data_cnt > 0) && USBSER_PORT_IS_BUSY(pp)) { if ((rval = cv_timedwait_sig(&pp->port_act_cv, &pp->port_mutex, until)) <= 0) { --- 1767,1777 ---- * which becomes zero when all data is submitted to DSD. But usbser * stays busy until it gets tx callback from DSD, signalling that * data has been sent over USB. To be continued in the next comment... */ until = ddi_get_lbolt() + ! drv_sectohz(USBSER_WQ_DRAIN_TIMEOUT); while ((pp->port_wq_data_cnt > 0) && USBSER_PORT_IS_BUSY(pp)) { if ((rval = cv_timedwait_sig(&pp->port_act_cv, &pp->port_mutex, until)) <= 0) {