Date: Mon, 4 Jul 2011 12:18:12 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r223759 - head/sys/sys Message-ID: <201107041218.p64CICF4018636@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Mon Jul 4 12:18:12 2011 New Revision: 223759 URL: http://svn.freebsd.org/changeset/base/223759 Log: - Remove the now unused CPU_NAND_ATOMIC() - Add a comment explaining that CPU_OR_ATOMIC() and CPU_COPY_STORE_REL() are special wrappers used to cater particular cases. Modified: head/sys/sys/cpuset.h Modified: head/sys/sys/cpuset.h ============================================================================== --- head/sys/sys/cpuset.h Mon Jul 4 12:04:52 2011 (r223758) +++ head/sys/sys/cpuset.h Mon Jul 4 12:18:12 2011 (r223759) @@ -131,6 +131,7 @@ #define CPU_SET_ATOMIC(n, p) \ atomic_set_long(&(p)->__bits[(n)/_NCPUBITS], __cpuset_mask(n)) +/* Convenience functions catering special cases. */ #define CPU_OR_ATOMIC(d, s) do { \ __size_t __i; \ for (__i = 0; __i < _NCPUWORDS; __i++) \ @@ -138,13 +139,6 @@ (s)->__bits[__i]); \ } while (0) -#define CPU_NAND_ATOMIC(d, s) do { \ - __size_t __i; \ - for (__i = 0; __i < _NCPUWORDS; __i++) \ - atomic_clear_long(&(d)->__bits[__i], \ - (s)->__bits[__i]); \ -} while (0) - #define CPU_COPY_STORE_REL(f, t) do { \ __size_t __i; \ for (__i = 0; __i < _NCPUWORDS; __i++) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107041218.p64CICF4018636>