Print this page
XXXX introduce drv_sectohz
@@ -444,11 +444,11 @@
ASSERT(MAC_PERIM_HELD(portp->lp_grp->lg_mh));
mutex_enter(&pl->lacp_timer_lock);
if (pl->periodic_timer.id == 0) {
pl->periodic_timer.id = timeout(periodic_timer_pop, portp,
- drv_usectohz(1000000 * portp->lp_lacp.periodic_timer.val));
+ drv_sectohz(portp->lp_lacp.periodic_timer.val));
}
mutex_exit(&pl->lacp_timer_lock);
}
static void
@@ -1515,12 +1515,11 @@
mutex_enter(&pl->lacp_timer_lock);
if (pl->wait_while_timer.id == 0) {
pl->wait_while_timer.id =
timeout(wait_while_timer_pop, portp,
- drv_usectohz(1000000 *
- portp->lp_lacp.wait_while_timer.val));
+ drv_sectohz(portp->lp_lacp.wait_while_timer.val));
}
mutex_exit(&pl->lacp_timer_lock);
}