summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-02 22:17:59 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-02 22:17:59 +0000
commitdf57327f728f0553ddc0b9f1ef216734458efa96 (patch)
tree7bed7477b81ceb369aad220ce7b814165723e12d /sys/dev/usb/if_axe.c
parent9e114205afca8455e8216af39d0674a0ad821322 (diff)
don't call mii_pollstat() right after mii_tick() in foo_tick_task()
Diffstat (limited to 'sys/dev/usb/if_axe.c')
-rw-r--r--sys/dev/usb/if_axe.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index a187c737078..812d3d48f64 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.25 2005/06/08 17:03:01 henning Exp $ */
+/* $OpenBSD: if_axe.c,v 1.26 2005/07/02 22:17:57 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -985,16 +985,13 @@ axe_tick_task(void *xsc)
s = splnet();
mii_tick(mii);
- if (!sc->axe_link) {
- mii_pollstat(mii);
- if (mii->mii_media_status & IFM_ACTIVE &&
- IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
- DPRINTF(("%s: %s: got link\n",
- USBDEVNAME(sc->axe_dev), __func__));
- sc->axe_link++;
- if (IFQ_IS_EMPTY(&ifp->if_snd) == 0)
- axe_start(ifp);
- }
+ if (!sc->axe_link && mii->mii_media_status & IFM_ACTIVE &&
+ IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
+ DPRINTF(("%s: %s: got link\n",
+ USBDEVNAME(sc->axe_dev), __func__));
+ sc->axe_link++;
+ if (IFQ_IS_EMPTY(&ifp->if_snd) == 0)
+ axe_start(ifp);
}
usb_callout(sc->axe_stat_ch, hz, axe_tick, sc);