Print this page
XXXX introduce drv_sectohz

@@ -320,14 +320,13 @@
                 qlge->mbx_wait_completion = 1;
                 while (!done && qlge->mbx_wait_completion && !ddi_in_panic()) {
                         /* default 5 seconds from now to timeout */
                         timer = ddi_get_lbolt();
                         if (mbx_cmd->timeout) {
-                                timer +=
-                                    mbx_cmd->timeout * drv_usectohz(1000000);
+                                timer += drv_sectohz(mbx_cmd->timeout);
                         } else {
-                                timer += 5 * drv_usectohz(1000000);
+                                timer += drv_sectohz(5);
                         }
                         if (cv_timedwait(&qlge->cv_mbx_intr, &qlge->mbx_mutex,
                             timer) == -1) {
                                 /*
                                  * The timeout time 'timer' was