summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-02-29 09:26:01 +0000
committerscottl <scottl@FreeBSD.org>2004-02-29 09:26:01 +0000
commit28681e97b01c7595536de0338a8e8f65827477ae (patch)
treefd6e8d3b7da7419d53c635ba6dacaf83fe4c2400 /sys/dev/hatm
parent6becbe0dc56258a4e9f2945f223bec6080741c35 (diff)
downloadFreeBSD-src-28681e97b01c7595536de0338a8e8f65827477ae.zip
FreeBSD-src-28681e97b01c7595536de0338a8e8f65827477ae.tar.gz
All three of these drivers abused cv_waitq_empty in the same way by spinning
on it in hopes of making sure that the waitq was empty before going on. This wasn't needed and probably never would have worked as intended. Now that cv_waitq_empty() and friends are gone, the code in these drivers that spins on it can go away too. This should unbreak LINT. Discussed with: kan
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r--sys/dev/hatm/if_hatm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c
index a411d06..80c8ff0 100644
--- a/sys/dev/hatm/if_hatm.c
+++ b/sys/dev/hatm/if_hatm.c
@@ -2312,13 +2312,8 @@ hatm_stop(struct hatm_softc *sc)
* Give any waiters on closing a VCC a chance. They will stop
* to wait if they see that IFF_RUNNING disappeared.
*/
- while (!(cv_waitq_empty(&sc->vcc_cv))) {
- cv_broadcast(&sc->vcc_cv);
- DELAY(100);
- }
- while (!(cv_waitq_empty(&sc->cv_rcclose))) {
- cv_broadcast(&sc->cv_rcclose);
- }
+ cv_broadcast(&sc->vcc_cv);
+ cv_broadcast(&sc->cv_rcclose);
/*
* Now free all resources.
OpenPOWER on IntegriCloud