From 28681e97b01c7595536de0338a8e8f65827477ae Mon Sep 17 00:00:00 2001 From: scottl Date: Sun, 29 Feb 2004 09:26:01 +0000 Subject: 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 --- sys/dev/patm/if_patm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/dev/patm') diff --git a/sys/dev/patm/if_patm.c b/sys/dev/patm/if_patm.c index b10603b..3728ecc 100644 --- a/sys/dev/patm/if_patm.c +++ b/sys/dev/patm/if_patm.c @@ -269,10 +269,7 @@ patm_stop(struct patm_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); - } + cv_broadcast(&sc->vcc_cv); /* free large buffers */ patm_debug(sc, ATTACH, "freeing large buffers..."); -- cgit v1.1