aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sr
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-11-19 05:37:37 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-11-19 05:37:37 +0000
commit6822ccd6e7f3956f40fc010cca9410a8e10c1e2e (patch)
tree2292fe2f7407528fda73ff438c3bbc82c776b161 /sys/dev/sr
parentdf618d033c1d50bde6516eb2d1867745590cb695 (diff)
Notes
Diffstat (limited to 'sys/dev/sr')
-rw-r--r--sys/dev/sr/if_sr.c6
-rw-r--r--sys/dev/sr/if_sr_isa.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c
index 1827793ff204..0bcc23b95bb9 100644
--- a/sys/dev/sr/if_sr.c
+++ b/sys/dev/sr/if_sr.c
@@ -3296,13 +3296,13 @@ ngsr_watchdog_frame(void * arg)
if (sc->out_dog == 0) {
log(LOG_ERR, "sr%d: Transmit failure.. no clock?\n",
sc->unit);
+ s = splimp();
srwatchdog(sc);
#if 0
- s = splimp();
sr_down(sc);
sr_up(sc);
- splx(s);
#endif
+ splx(s);
sc->inlast = sc->out_deficit = 0;
} else {
sc->out_dog--;
@@ -3466,8 +3466,8 @@ ngsr_rcvdata(hook_p hook, struct mbuf *m, meta_p meta)
goto bad;
}
IF_ENQUEUE(xmitq_p, m);
- splx(s);
srstart(sc);
+ splx(s);
return (0);
bad:
diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c
index 1827793ff204..0bcc23b95bb9 100644
--- a/sys/dev/sr/if_sr_isa.c
+++ b/sys/dev/sr/if_sr_isa.c
@@ -3296,13 +3296,13 @@ ngsr_watchdog_frame(void * arg)
if (sc->out_dog == 0) {
log(LOG_ERR, "sr%d: Transmit failure.. no clock?\n",
sc->unit);
+ s = splimp();
srwatchdog(sc);
#if 0
- s = splimp();
sr_down(sc);
sr_up(sc);
- splx(s);
#endif
+ splx(s);
sc->inlast = sc->out_deficit = 0;
} else {
sc->out_dog--;
@@ -3466,8 +3466,8 @@ ngsr_rcvdata(hook_p hook, struct mbuf *m, meta_p meta)
goto bad;
}
IF_ENQUEUE(xmitq_p, m);
- splx(s);
srstart(sc);
+ splx(s);
return (0);
bad: