Date: Tue, 24 Aug 2010 18:44:13 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r211766 - head/sys/dev/vr Message-ID: <201008241844.o7OIiDLF084588@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008241844.o7OIiDLF084588>