From owner-cvs-src-old@FreeBSD.ORG Thu Jul 8 03:57:36 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6319C106566B for ; Thu, 8 Jul 2010 03:57:36 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 508F78FC1B for ; Thu, 8 Jul 2010 03:57:36 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o683vaFw007405 for ; Thu, 8 Jul 2010 03:57:36 GMT (envelope-from lstewart@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o683vaos007403 for cvs-src-old@freebsd.org; Thu, 8 Jul 2010 03:57:36 GMT (envelope-from lstewart@repoman.freebsd.org) Message-Id: <201007080357.o683vaos007403@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to lstewart@repoman.freebsd.org using -f From: Lawrence Stewart Date: Thu, 8 Jul 2010 03:41:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/sys pcpu.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2010 03:57:36 -0000 lstewart 2010-07-08 03:41:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/sys pcpu.h Log: SVN rev 209790 on 2010-07-08 03:41:57Z by lstewart MFC r209119,209325: - Add a utility macro to simplify calculating an aggregate sum from a DPCPU counter variable. - Rename the internal for loop iterator to "_i" to avoid potential shadowing of external variables named "i". The "_" prefix is reserved for infrastructure type code and is therefore not expected to be used by normal code likely to call DPCPU_SUM(). [1] - Change DPCPU_SUM to return the sum rather than calculate and assign it internally. Usage is now: "sum = DPCPU_SUM(dpcpu_var, member_to_sum);" [2] - Fix some style nits. [3] Sponsored by: FreeBSD Foundation Suggested by: bde [3], mdf [1], kib [1,2], pjd [1,3] Reviewed by: jhb, rpaulo, rwatson (old version of r209119), kib (r209325) Revision Changes Path 1.33.2.3 +15 -0 src/sys/sys/pcpu.h