Print this page
XXXX introduce drv_sectohz

@@ -467,11 +467,11 @@
                 /*
                  * Set time interval and start timesync routine.
                  * Also just this once set the Solaris clock
                  * to the RMC clock.
                  */
-                timesync_interval = drv_usectohz(5*60 * MICROSEC);
+                timesync_interval = drv_sectohz(5 * 60);
                 plat_timesync((void *) &attaching);
 
                 return (DDI_SUCCESS);
         case DDI_RESUME:
                 return (DDI_SUCCESS);

@@ -2997,11 +2997,11 @@
                  * period isn't added to our 60 second timer, make the
                  * timeout() call before calling rmclomv_do_cmd().
                  */
                 if (timer_id == 0) {
                         timer_id = timeout(rmclomv_checkrmc_wakeup, NULL,
-                            60 * drv_usectohz(1000000));
+                            drv_sectohz(60));
                 }
 
                 mutex_exit(&rmclomv_checkrmc_lock);
 
                 err = rmclomv_do_cmd(DP_GET_SYSINFO, DP_GET_SYSINFO_R,