Print this page
XXXX introduce drv_sectohz
@@ -114,11 +114,11 @@
#define MDI_TASKQ_MAXALLOC (500*mdi_taskq_n_threads)
taskq_t *mdi_taskq;
static uint_t mdi_taskq_n_threads = MDI_TASKQ_N_THREADS;
-#define TICKS_PER_SECOND (drv_usectohz(1000000))
+#define TICKS_PER_SECOND drv_sectohz(1)
/*
* The data should be "quiet" for this interval (in seconds) before the
* vhci cached data is flushed to the disk.
*/
@@ -3198,11 +3198,11 @@
MDI_DEBUG(1, (MDI_NOTE, ct->ct_dip,
"!%d cmds still pending on path: %s %p",
MDI_PI(pip)->pi_ref_cnt,
mdi_pi_spathname(pip), (void *)pip));
if (cv_reltimedwait(&MDI_PI(pip)->pi_ref_cv,
- &MDI_PI(pip)->pi_mutex, drv_usectohz(60 * 1000000),
+ &MDI_PI(pip)->pi_mutex, drv_sectohz(60),
TR_CLOCK_TICK) == -1) {
/*
* The timeout time reached without ref_cnt being zero
* being signaled.
*/
@@ -3864,11 +3864,11 @@
MDI_DEBUG(1, (MDI_NOTE, ct->ct_dip,
"!%d cmds still pending on path %s %p",
MDI_PI(pip)->pi_ref_cnt, mdi_pi_spathname(pip),
(void *)pip));
if (cv_reltimedwait(&MDI_PI(pip)->pi_ref_cv,
- &MDI_PI(pip)->pi_mutex, drv_usectohz(60 * 1000000),
+ &MDI_PI(pip)->pi_mutex, drv_sectohz(60),
TR_CLOCK_TICK) == -1) {
/*
* The timeout time reached without ref_cnt being zero
* being signaled.
*/