Print this page
XXXX introduce drv_sectohz
*** 444,454 ****
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));
}
mutex_exit(&pl->lacp_timer_lock);
}
static void
--- 444,454 ----
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_sectohz(portp->lp_lacp.periodic_timer.val));
}
mutex_exit(&pl->lacp_timer_lock);
}
static void
*** 1515,1526 ****
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));
}
mutex_exit(&pl->lacp_timer_lock);
}
--- 1515,1525 ----
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_sectohz(portp->lp_lacp.wait_while_timer.val));
}
mutex_exit(&pl->lacp_timer_lock);
}