Print this page
XXXX introduce drv_sectohz

@@ -455,12 +455,11 @@
                 ddi_soft_state_fini(&ahci_statep);
                 goto err_out;
         }
 
         /* watchdog tick */
-        ahci_watchdog_tick = drv_usectohz(
-            (clock_t)ahci_watchdog_timeout * 1000000);
+        ahci_watchdog_tick = drv_sectohz(ahci_watchdog_timeout);
 
         ret = mod_install(&modlinkage);
         if (ret != 0) {
                 sata_hba_fini(&modlinkage);
 #if AHCI_DEBUG

@@ -1810,11 +1809,11 @@
                         ahci_portp->ahciport_flags &= ~AHCI_PORT_FLAG_POLLING;
                         return (rval);
                 }
 
                 pkt_timeout_ticks =
-                    drv_usectohz((clock_t)spkt->satapkt_time * 1000000);
+                    drv_sectohz((clock_t)spkt->satapkt_time);
 
                 while (spkt->satapkt_reason == SATA_PKT_BUSY) {
                         mutex_exit(&ahci_portp->ahciport_mutex);
 
                         /* Simulate the interrupt */