summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/io/heci/io_heci.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/intel/io/heci/io_heci.c')
-rw-r--r--usr/src/uts/intel/io/heci/io_heci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/uts/intel/io/heci/io_heci.c b/usr/src/uts/intel/io/heci/io_heci.c
index 31fc742544..994cde3194 100644
--- a/usr/src/uts/intel/io/heci/io_heci.c
+++ b/usr/src/uts/intel/io/heci/io_heci.c
@@ -336,10 +336,8 @@ fail:
err = 0;
while (err != -1 && HECI_FILE_CONNECTED != file_ext->state &&
HECI_FILE_DISCONNECTED != file_ext->state) {
- clock_t tm;
- tm = ddi_get_lbolt();
- err = cv_timedwait(&dev->wait_recvd_msg,
- &dev->device_lock, tm + timeout * HZ);
+ err = cv_reltimedwait(&dev->wait_recvd_msg,
+ &dev->device_lock, timeout * HZ, TR_CLOCK_TICK);
}
mutex_exit(&dev->device_lock);