svn commit: r223759 - head/sys/sys

Attilio Rao attilio at FreeBSD.org
Mon Jul 4 12:18:13 UTC 2011


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++)			\


More information about the svn-src-all mailing list