Print this page
XXXX introduce drv_sectohz

@@ -4366,11 +4366,11 @@
                 if (i++ > 30) {
                         break;
                 }
 
                 mutex_exit(&EMLXS_PORT_LOCK);
-                delay(drv_usectohz(1000000));
+                delay(drv_sectohz(1));
                 mutex_enter(&EMLXS_PORT_LOCK);
         }
 
         if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) {
                 switch (mode) {

@@ -4461,11 +4461,11 @@
                         if (i++ > 30) {
                                 break;
                         }
 
                         mutex_exit(&EMLXS_PORT_LOCK);
-                        delay(drv_usectohz(1000000));
+                        delay(drv_sectohz(1));
                         mutex_enter(&EMLXS_PORT_LOCK);
                 }
 
                 /* Return current state */
                 if (hba->flag & FC_ONLINE_MODE) {

@@ -4544,11 +4544,11 @@
                         if (i++ > 30) {
                                 break;
                         }
 
                         mutex_exit(&EMLXS_PORT_LOCK);
-                        delay(drv_usectohz(1000000));
+                        delay(drv_sectohz(1));
                         mutex_enter(&EMLXS_PORT_LOCK);
                 }
 
                 /* Return current state */
                 if (hba->flag & FC_ONLINE_MODE) {

@@ -8322,11 +8322,11 @@
                 rval = DFC_IO_ERROR;
                 if (mbxstatus == MBX_TIMEOUT)
                         rval = DFC_TIMEOUT;
         }
 
-        delay(drv_usectohz(1000000));
+        delay(drv_sectohz(1));
         i = 0;
         while ((hba->state < FC_LINK_UP) && (hba->state != FC_ERROR)) {
                 delay(drv_usectohz(100000));
                 i++;