Date: Thu, 8 Jul 2010 03:41:57 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/sys pcpu.h Message-ID: <201007080357.o683vaos007403@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007080357.o683vaos007403>
