cvs commit: src/sys/dev/an if_an.c

Doug Ambrisko ambrisko at ambrisko.com
Wed Aug 20 06:37:42 PDT 2003


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.


More information about the cvs-src mailing list