Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci The wm_linkintr_gmii() function is called from i...



details:   https://anonhg.NetBSD.org/src/rev/fb11f5145f87
branches:  trunk
changeset: 787328:fb11f5145f87
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 11 10:07:09 2013 +0000

description:
The wm_linkintr_gmii() function is called from interrupt, so call
mii_pollstat() instead of mii_tick().

diffstat:

 sys/dev/pci/if_wm.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r e851f80f7d7a -r fb11f5145f87 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Tue Jun 11 07:22:08 2013 +0000
+++ b/sys/dev/pci/if_wm.c       Tue Jun 11 10:07:09 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.253 2013/06/04 16:55:07 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.254 2013/06/11 10:07:09 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.253 2013/06/04 16:55:07 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.254 2013/06/11 10:07:09 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3820,9 +3820,9 @@
 
        if (icr & ICR_LSC) {
                DPRINTF(WM_DEBUG_LINK,
-                   ("%s: LINK: LSC -> mii_tick\n",
+                   ("%s: LINK: LSC -> mii_pollstat\n",
                        device_xname(sc->sc_dev)));
-               mii_tick(&sc->sc_mii);
+               mii_pollstat(&sc->sc_mii);
                if (sc->sc_type == WM_T_82543) {
                        int miistatus, active;
 



Home | Main Index | Thread Index | Old Index