diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -3273,28 +3273,6 @@ } } -void -xpt_polled_action(union ccb *start_ccb) -{ - uint32_t timeout; - struct cam_ed *dev; - - timeout = start_ccb->ccb_h.timeout * 10; - dev = start_ccb->ccb_h.path->device; - - mtx_unlock(&dev->device_mtx); - - timeout = xpt_poll_setup(start_ccb); - if (timeout > 0) { - xpt_action(start_ccb); - xpt_pollwait(start_ccb, timeout); - } else { - start_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; - } - - mtx_lock(&dev->device_mtx); -} - /* * Schedule a peripheral driver to receive a ccb when its * target device has space for more transactions. diff --git a/sys/cam/cam_xpt_periph.h b/sys/cam/cam_xpt_periph.h --- a/sys/cam/cam_xpt_periph.h +++ b/sys/cam/cam_xpt_periph.h @@ -40,7 +40,6 @@ /* Functions accessed by the peripheral drivers */ #ifdef _KERNEL -void xpt_polled_action(union ccb *ccb); void xpt_release_ccb(union ccb *released_ccb); void xpt_schedule(struct cam_periph *perph, u_int32_t new_priority); int32_t xpt_add_periph(struct cam_periph *periph);