svn commit: r211766 - head/sys/dev/vr
Pyun YongHyeon
yongari at FreeBSD.org
Tue Aug 24 18:44:13 UTC 2010
Author: yongari
Date: Tue Aug 24 18:44:12 2010
New Revision: 211766
URL: http://svn.freebsd.org/changeset/base/211766
Log:
vr_init_locked() will stop and reset the controller. Remove
unnecessary vr_stop()/vr_reset() calls.
Modified:
head/sys/dev/vr/if_vr.c
Modified: head/sys/dev/vr/if_vr.c
==============================================================================
--- head/sys/dev/vr/if_vr.c Tue Aug 24 18:40:11 2010 (r211765)
+++ head/sys/dev/vr/if_vr.c Tue Aug 24 18:44:12 2010 (r211766)
@@ -1558,8 +1558,6 @@ vr_tick(void *xsc)
if ((sc->vr_flags & VR_F_RESTART) != 0) {
device_printf(sc->vr_dev, "restarting\n");
sc->vr_stat.num_restart++;
- vr_stop(sc);
- vr_reset(sc);
sc->vr_ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
vr_init_locked(sc);
sc->vr_flags &= ~VR_F_RESTART;
@@ -2299,8 +2297,6 @@ vr_watchdog(struct vr_softc *sc)
ifp->if_oerrors++;
if_printf(ifp, "watchdog timeout\n");
- vr_stop(sc);
- vr_reset(sc);
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
vr_init_locked(sc);
More information about the svn-src-head
mailing list