From owner-cvs-all@FreeBSD.ORG Wed Aug 20 03:49:52 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45D2816A4C0; Wed, 20 Aug 2003 03:49:52 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE4FD43FBF; Wed, 20 Aug 2003 03:49:48 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 78F7B3ABB3F; Wed, 20 Aug 2003 12:50:26 +0200 (CEST) Date: Wed, 20 Aug 2003 12:50:26 +0200 From: Pawel Jakub Dawidek To: Doug Ambrisko Message-ID: <20030820105026.GI47959@garage.freebsd.pl> References: <200308200552.h7K5qmIA023239@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="/8E7gjuj425jZz9t" Content-Disposition: inline In-Reply-To: <200308200552.h7K5qmIA023239@repoman.freebsd.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p3 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: jhb@freebsd.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/an if_an.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 10:49:52 -0000 --/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--