diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2014-11-10 17:53:11 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2014-11-10 17:53:11 +0000 |
commit | 45287d23b119580f0953ca67bac95fe969c821bf (patch) | |
tree | 4cf3a3fa2f752ce52348428a17dd0dd86f8170d4 /sys/dev/pci/if_ix.c | |
parent | 262606b7edadc66aca578acc2d5b0cb3b36ba2d8 (diff) |
remove pointless timeout_del/add dance in the interrupt handler
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r-- | sys/dev/pci/if_ix.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index 11d4f9720f6..58f23838e25 100644 --- a/sys/dev/pci/if_ix.c +++ b/sys/dev/pci/if_ix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.c,v 1.104 2014/11/10 17:07:52 mikeb Exp $ */ +/* $OpenBSD: if_ix.c,v 1.105 2014/11/10 17:53:10 mikeb Exp $ */ /****************************************************************************** @@ -888,11 +888,8 @@ ixgbe_intr(void *arg) } /* Link status change */ - if (reg_eicr & IXGBE_EICR_LSC) { - timeout_del(&sc->timer); + if (reg_eicr & IXGBE_EICR_LSC) ixgbe_update_link_status(sc); - timeout_add_sec(&sc->timer, 1); - } if (hw->mac.type != ixgbe_mac_82598EB) { if (reg_eicr & IXGBE_EICR_GPI_SDP2) { |