Date: Sat, 19 Jun 2010 02:30:10 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/sys pcpu.h Message-ID: <201006190230.o5J2UPtG033271@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
lstewart 2010-06-19 02:30:10 UTC FreeBSD src repository Modified files: sys/sys pcpu.h Log: SVN rev 209325 on 2010-06-19 02:30:10Z by lstewart - 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: kib MFC after: 1 week (instead of r209119) Revision Changes Path 1.40 +11 -7 src/sys/sys/pcpu.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006190230.o5J2UPtG033271>