From 45287d23b119580f0953ca67bac95fe969c821bf Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Mon, 10 Nov 2014 17:53:11 +0000 Subject: remove pointless timeout_del/add dance in the interrupt handler --- sys/dev/pci/if_ix.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/dev/pci/if_ix.c') 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) { -- cgit v1.2.3