From 623aa4987bf474a82acbd794a4dcc61f396411b4 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Mon, 24 Sep 2001 15:54:42 +0000 Subject: Use splimp instead of splnet in some places. I don't understand why, but it helps stability a lot. --- sys/dev/ic/gem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/ic/gem.c') diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index a487bc5ed59..2dadc5ce6a2 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -386,7 +386,7 @@ gem_tick(arg) struct gem_softc *sc = arg; int s; - s = splnet(); + s = splimp(); mii_tick(&sc->sc_mii); splx(s); @@ -402,7 +402,7 @@ gem_reset(sc) int i; int s; - s = splnet(); + s = splimp(); DPRINTF(sc, ("%s: gem_reset\n", sc->sc_dev.dv_xname)); gem_reset_rx(sc); gem_reset_tx(sc); @@ -720,7 +720,7 @@ gem_init(struct ifnet *ifp) int s; u_int32_t v; - s = splnet(); + s = splimp(); DPRINTF(sc, ("%s: gem_init: calling stop\n", sc->sc_dev.dv_xname)); /* @@ -1835,7 +1835,7 @@ gem_ioctl(ifp, cmd, data) struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; - s = splnet(); + s = splimp(); switch (cmd) { @@ -2069,7 +2069,7 @@ gem_power(why, arg) struct ifnet *ifp = &sc->sc_arpcom.ac_if; int s; - s = splnet(); + s = splimp(); switch (why) { case PWR_SUSPEND: case PWR_STANDBY: -- cgit v1.2.3