Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 12:50:26 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        Doug Ambrisko <ambrisko@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/an if_an.c
Message-ID:  <20030820105026.GI47959@garage.freebsd.pl>
In-Reply-To: <200308200552.h7K5qmIA023239@repoman.freebsd.org>
References:  <200308200552.h7K5qmIA023239@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--/8E7gjuj425jZz9t
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?

--=20
Pawel Jakub Dawidek                       pawel@dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net

--/8E7gjuj425jZz9t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iQCVAwUBP0NScj/PhmMH/Mf1AQHnEwP/ZA9Ohbf8pPQ/OLpz1halJPcLqgsNxXo3
eq8nQO+O4Pf/JFvqk3A5ftTSiNU4cQDXZb6g2LdkOXzXDtwd5V6bJWgDlifj8gSB
qhp+gI4j4dtJHHfsZFbjgT6gNJf7a+floXXDi59MaPhi+i+Cc403q1EJPrOIk3b8
bOX2wVh9BWU=
=P597
-----END PGP SIGNATURE-----

--/8E7gjuj425jZz9t--



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