From owner-svn-src-head@FreeBSD.ORG Mon Jun 14 08:18:39 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 220AD10656C3; Mon, 14 Jun 2010 08:18:39 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 53C858FC08; Mon, 14 Jun 2010 08:18:37 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 368F945E94; Mon, 14 Jun 2010 10:18:36 +0200 (CEST) Received: from localhost (pdawidek.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 35C5A45E87; Mon, 14 Jun 2010 10:18:32 +0200 (CEST) Date: Mon, 14 Jun 2010 10:18:24 +0200 From: Pawel Jakub Dawidek To: Lawrence Stewart Message-ID: <20100614081824.GD1721@garage.freebsd.pl> References: <201006130239.o5D2du3m086332@svn.freebsd.org> <20100613101025.GD1320@garage.freebsd.pl> <4C158B71.205@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IMjqdzrDRly81ofr" Content-Disposition: inline In-Reply-To: <4C158B71.205@freebsd.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r209119 - head/sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 08:18:39 -0000 --IMjqdzrDRly81ofr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 14, 2010 at 11:52:49AM +1000, Lawrence Stewart wrote: > Given that the DPCPU variable name space is flat and variable names have= =20 > to be unique, perhaps something like the following would address the=20 > concerns raised? >=20 > #define DPCPU_SUM(n, var, sum) \ > do { \ > u_int _##n##_i; \ > (sum) =3D 0; \ > CPU_FOREACH(_##n##_i) \ > (sum) +=3D (DPCPU_ID_PTR(_##n##_i, n))->var; \ > } while (0) Looks ok to me. Thanks. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --IMjqdzrDRly81ofr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkwV5dAACgkQForvXbEpPzRi8ACeOOvgs4zqQjgjGClp8ALd1+qc KyIAnilq2IcbhWN7CRwnIkvryaQuqNRv =3ps0 -----END PGP SIGNATURE----- --IMjqdzrDRly81ofr--