diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-24 15:54:42 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-24 15:54:42 +0000 |
commit | 623aa4987bf474a82acbd794a4dcc61f396411b4 (patch) | |
tree | 893d845a111e4eef6a7274cae74a4b3b4e5eccb1 /sys/dev/ic/gem.c | |
parent | 54005de3d7af93a07a91559d64b50ca351af0292 (diff) |
Use splimp instead of splnet in some places.
I don't understand why, but it helps stability a lot.
Diffstat (limited to 'sys/dev/ic/gem.c')
-rw-r--r-- | sys/dev/ic/gem.c | 10 |
1 files changed, 5 insertions, 5 deletions
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: |