Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 06:37:38 -0700 (PDT)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/an if_an.c
Message-ID:  <200308201337.h7KDbc9U046234@ambrisko.com>
In-Reply-To: <20030820105026.GI47959@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Jakub Dawidek writes:
-- Start of PGP signed section.
[ Charset ISO-8859-2 unsupported, converting... ]
| On Tue, Aug 19, 2003 at 10:52:48PM -0700, Doug Ambrisko wrote:
| +> -#define FLASH_DELAY(x)	tsleep(ifp, PZERO, "flash", ((x) / hz) + 1);
| +> +#define FLASH_DELAY(_sc, x)	AN_UNLOCK(_sc) ; \
| +> +	tsleep(ifp, PZERO, "flash", ((x) / hz) + 1); \
| +> +	AN_LOCK(_sc) ;
| 
| Proper solution is to use msleep(9), right?

That looks to be a better solution.

Doug A.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308201337.h7KDbc9U046234>