Print this page
XXXX introduce drv_sectohz
*** 4325,4335 ****
rw_enter(&Adapter->chip_lock, RW_READER);
if (tx_ring->resched_needed &&
((ddi_get_lbolt() - tx_ring->resched_timestamp) >
! drv_usectohz(1000000)) &&
(Adapter->e1000g_state & E1000G_STARTED) &&
(tx_ring->tbd_avail >= DEFAULT_TX_NO_RESOURCE)) {
tx_ring->resched_needed = B_FALSE;
mac_tx_update(Adapter->mh);
E1000G_STAT(tx_ring->stat_reschedule);
--- 4325,4335 ----
rw_enter(&Adapter->chip_lock, RW_READER);
if (tx_ring->resched_needed &&
((ddi_get_lbolt() - tx_ring->resched_timestamp) >
! drv_sectohz(1)) &&
(Adapter->e1000g_state & E1000G_STARTED) &&
(tx_ring->tbd_avail >= DEFAULT_TX_NO_RESOURCE)) {
tx_ring->resched_needed = B_FALSE;
mac_tx_update(Adapter->mh);
E1000G_STAT(tx_ring->stat_reschedule);
*** 4638,4648 ****
static void
arm_watchdog_timer(struct e1000g *Adapter)
{
Adapter->watchdog_tid =
timeout(e1000g_local_timer,
! (void *)Adapter, 1 * drv_usectohz(1000000));
}
#pragma inline(arm_watchdog_timer)
static void
enable_watchdog_timer(struct e1000g *Adapter)
--- 4638,4648 ----
static void
arm_watchdog_timer(struct e1000g *Adapter)
{
Adapter->watchdog_tid =
timeout(e1000g_local_timer,
! (void *)Adapter, drv_sectohz(1));
}
#pragma inline(arm_watchdog_timer)
static void
enable_watchdog_timer(struct e1000g *Adapter)