]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use a cv rather than tsleep and friends to do the sleep/wakeup
authorWarner Losh <imp@FreeBSD.org>
Thu, 13 Jun 2002 07:19:31 +0000 (07:19 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 13 Jun 2002 07:19:31 +0000 (07:19 +0000)
commit4fdc73e4fa91096b94869868c37d0dcd9e6eeca7
tree05aebd9c6168f1b7a35f118c260e04b03f9d8fde
parent22afbb6bb09671ed76b2a8a7c1e9831f286b3bcb
Use a cv rather than tsleep and friends to do the sleep/wakeup
handshake between the ISR and the worker thread.  Move the mutex lock
so that it only protects the cv_wait.  This elimiates the not sleeping
with pccbb1 held messages some people were seeing.

Reviewed by: jhb (at least an early version)
sys/dev/pccbb/pccbb.c
sys/dev/pccbb/pccbbvar.h